13 class CLASS_TESTER( HCF )
25 inline bool CLASS_TESTER( HCF )::ValidateStreamPos (
sw::HCF* hcf,
sw::Chunk& chunk )
27 auto file = hcf->m_impl.GetFile();
31 Size position = ftell( file );
33 Size chunkOffset = chunk.m_chunkPtr->m_absolutOffset;
34 Size dataOffset = chunk.m_chunkPtr->m_header.DataOffset;
35 Size dataSize = chunk.m_chunkPtr->m_header.DataSize;
37 if( position != chunkOffset + dataOffset + dataSize )
44 inline bool CLASS_TESTER( HCF )::ValidateStreamPos (
sw::HCF* hcf,
sw::Attribute& attrib )
46 auto file = hcf->m_impl.GetFile();
50 Size position = ftell( file );
52 Size chunkOffset = attrib.m_attribPtr->m_absolutOffset;
53 Size attribSize = attrib.m_attribPtr->m_header.AttribSize;
55 if( position != chunkOffset + attribSize )
Definition: Exception.h:11
Represents memory chunk in file.
Definition: Chunk.h:24
Main class for loading and writing HCF files.
Definition: HCF.h:34
Plik zawiera definicje podstawowych typów zmiennych.
Definition: Attribute.h:21