コード例 #1
0
ファイル: IDataStream.cpp プロジェクト: Silentfood/oonline
void IDataSubStream::ReadBuf(void * buf, UInt32 inLength)
{
	ASSERT_STR(inLength <= GetRemain(), "IDataSubStream::ReadBuf: hit eof");

	if(stream->GetOffset() != subBase + streamOffset)
		stream->SetOffset(subBase + streamOffset);

	stream->ReadBuf(buf, inLength);

	streamOffset += inLength;
}
コード例 #2
0
ファイル: buff.cpp プロジェクト: KerwinMa/AerothFlyffSource
void IBuff::SetTotal( DWORD tmTotal )
{
//	if( tmTotal > GetRemain() )
//		m_tmTotal = tmTotal;
	m_tmTotal	= max( tmTotal, GetRemain() );
}