This commit is contained in:
2024-08-07 09:16:27 -04:00
parent fdfadd5c7e
commit 5f971cf684
5200 changed files with 731717 additions and 0 deletions

15
sample/DataChnk.cpp Normal file
View File

@@ -0,0 +1,15 @@
#include <sample/datachnk.hpp>
bool DataChunk::read(FileHandle &handle)
{
if(!mChunkID.read(handle))return false;
if(!handle.read((BYTE*)&mLengthData,sizeof(mLengthData)))return false;
return true;
}
bool DataChunk::write(MemFile &memFile)const
{
if(!mChunkID.write(memFile))return false;
if(!memFile.write((char*)&mLengthData,sizeof(mLengthData)))return false;
return true;
}