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; }
void IBuff::SetTotal( DWORD tmTotal ) { // if( tmTotal > GetRemain() ) // m_tmTotal = tmTotal; m_tmTotal = max( tmTotal, GetRemain() ); }