Sleeping Wombat Common Library  0.50.0
swCommonLibrary
AttributeTypes.h
Go to the documentation of this file.
1 #pragma once
2 
9 namespace sw
10 {
11 
12 typedef uint64 AttributeType;
13 typedef uint8 DataUnderlayingType;
14 typedef DataUnderlayingType* DataPtr;
15 typedef std::unique_ptr< DataUnderlayingType[] > DataUPtr;
16 
17 
19 struct DataPack
20 {
21  DataPtr Data;
22  Size DataSize;
23 
24 // ================================ //
25 //
26  DataPack()
27  : DataSize( 0 )
28  {}
29 };
30 
31 
34 struct DataUPack
35 {
36  DataUPtr Data;
37  Size DataSize;
38 
39 // ================================ //
40 //
41  DataUPack()
42  : DataSize( 0 )
43  {}
44 };
45 
46 
47 enum AttributeTypeBuiltIn
48 {
49  InvalidAttribute,
50  ChunkName,
51  Compression
52 };
53 
54 
55 } // sw
56 
Definition: Exception.h:11
Data pointer and it's size. This struct is used to transfer ownership of pointer. ...
Definition: AttributeTypes.h:34
Data pointer and it's size.
Definition: AttributeTypes.h:19