// View.cpp
//

#include "stdafx.h"
#include "2View.h"

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	MC2View::OutStream
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDgDiBfLiDiLiPoOjFpBjDjJiCpAiDfIiDgHiDiKiBfLiDiAiPgPjHmNiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	ar	:_xZkqqHx_iPgPjHmNjAoGiDfIiDgHiDiKiBfLiDiAiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	_xZkqqHx_iDgGiBfLiDfOiDhEiDeIiBfLiDhNiDgCiDgHiCmNiImIiJlKiCmMjCmKiCoIiBeC_xHqqkZx_
 *			|_xZkqqHx_iDgDiBfLiDiL_xHqqkZx_ID|_xZkqqHx_iDgGiBfLiDfOiDfEiDeDiDfJ_xHqqkZx_|       _xZkqqHx_iDgGiBfLiDfO_xHqqkZx_       | _xZkqqHx_iBgDiBgD_xHqqkZx_ _xZkqqHx_iMeKiCoIjFnEiClFiBgA_xHqqkZx_
 *			|<-BYTE->|<---WORD--->|<---_xZkqqHx_iDgGiBfLiDfOiDfEiDeDiDfJ_xHqqkZx_--->|
 *
 *	   _xZkqqHx_iBgDiBgD_xHqqkZx_ |_xZkqqHx_iDgDiBfLiDiL_xHqqkZx_ID|_xZkqqHx_iDgGiBfLiDfOiDfEiDeDiDfJ_xHqqkZx_|       _xZkqqHx_iDgGiBfLiDfO_xHqqkZx_       |  0xff  |
 *			|<-BYTE->|<---WORD--->|<---_xZkqqHx_iDgGiBfLiDfOiDfEiDeDiDfJ_xHqqkZx_--->|<-BYTE->|
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.05.10 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void MC2View::OutStream (MCARCHIVE& ar) const
{
	// _xZkqqHx_iPeJjHlJiDhNiBfLiDeOiCpAiPgPjHmNiClHiCoJiBeC_xHqqkZx_
	ar << BYTE(-1);
} // MC2View::OutStream.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	MC2View::InStream
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDgDiBfLiDiLiPoOjFpBjDjJiCpAiDfIiDgHiDiKiBfLiDiAiCkJiCoHjDpMjHmNiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	ar	:_xZkqqHx_jDpMjHmNiMlDiDfIiDgHiDiKiBfLiDiAiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.05.10 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void MC2View::InStream (MCARCHIVE& ar)
{
	BYTE	byTool;
	WORD	wDataSize;
	for (;;)
	{
		// _xZkqqHx_iDgDiBfLiDiL_xHqqkZx_ID_xZkqqHx_iCpAjDmHiCnNiNjOiCnOiBeC_xHqqkZx_
		ar >> byTool;
		// _xZkqqHx_iPeJjHlJiDhNiBfLiDeOiCmIiCoHiCmOiDiLiBfLiDhGiCpAiPeJjHlJiBeC_xHqqkZx_
		if (byTool == BYTE(-1)) break;
		// _xZkqqHx_iDgGiBfLiDfOiDfEiDeDiDfJiCpAiDfIiDeMiDgCiDhGiClHiCoJiBeC_xHqqkZx_
		ar >> wDataSize;
		if (wDataSize != 0)
		{
			BYTEVector vData(wDataSize);
			ar.Read(&vData.front(), wDataSize);
		}
	}
} // MC2View::InStream.

