Sleeping Wombat Common Library  0.50.0
swCommonLibrary
ChunkHeader.h
Go to the documentation of this file.
1 #pragma once
2 
9 
10 
11 namespace sw
12 {
13 
14 
17 {
18  char ChunkHead[ 3 ];
19  bool HasChildren;
20  uint32 DataOffset;
21  Size NextChunk;
22  Size DataSize;
23 
24 // ================================ //
25 //
26  ChunkHeader()
27  : DataOffset( 0 )
28  , NextChunk( 0 )
29  , DataSize( 0 )
30  , HasChildren( false )
31  {
32  ChunkHead[ 0 ] = 'C';
33  ChunkHead[ 1 ] = 'H';
34  ChunkHead[ 2 ] = 'N';
35  }
36 
37 };
38 
39 } // sw
uint32 DataOffset
Data or nested chunks.
Definition: ChunkHeader.h:20
Definition: ChunkHeader.h:16
Definition: Exception.h:11
Size NextChunk
Offset to Next chunk on the same level.
Definition: ChunkHeader.h:21
Size DataSize
Size of data. If value is equal to 0.
Definition: ChunkHeader.h:22
Plik zawiera definicje podstawowych typów zmiennych.
char ChunkHead[3]
Letters CHN.
Definition: ChunkHeader.h:18
bool HasChildren
Indicated wheter DataOffset points to nested chunk or data.
Definition: ChunkHeader.h:19