1 |
using System; |
2 |
using System.Collections.Generic; |
3 |
using System.Linq; |
4 |
using System.Text; |
5 |
using System.Runtime.InteropServices; |
6 |
|
7 |
namespace gr2lib.core.coretypes.native |
8 |
{ |
9 |
[StructLayout(LayoutKind.Sequential, Pack = 4), Size(Size = 72)] |
10 |
internal struct granny_grn_file_header |
11 |
{ |
12 |
public Int32 Version; |
13 |
public Int32 TotalSize; |
14 |
public Int32 CRC; |
15 |
public Int32 SectionArrayOffset; |
16 |
public Int32 SectionArrayCount; |
17 |
//public granny_grn_reference RootObjectTypeDefinition; |
18 |
//public granny_grn_reference RootObject; |
19 |
|
20 |
public IntPtr RootObjectTypeDefinition; |
21 |
public IntPtr RootObject; |
22 |
|
23 |
[Obsolete("Don't use this. Call: coreapi.GrannyGetFileTypeTag(file_pointer)", true)] |
24 |
public Int32 TypeTag; |
25 |
[MarshalAsAttribute(UnmanagedType.ByValArray, SizeConst = 4)] |
26 |
public Int32[] ExtraTags; |
27 |
public Int32 StringDatabaseCRC; |
28 |
[MarshalAsAttribute(UnmanagedType.ByValArray, SizeConst = 3)] |
29 |
public Int32[] ReservedUnused; |
30 |
} |
31 |
} |