This commit is contained in:
Elena.Subbotina
2023-12-24 17:20:56 +03:00
parent cf4cc21e5f
commit 578a792fda
5 changed files with 33 additions and 4 deletions

View File

@ -198,6 +198,8 @@ void MemoryStream::WriteBytes(unsigned char* pData, int size)
unsigned long MemoryStream::GetPosition() const
{
if (m_Position > m_Size)
return m_Size;
return m_Position;
}
unsigned long MemoryStream::GetSize() const