/[gr2lib]/trunk/gr2lib/CoreTypes.cs
ViewVC logotype

Contents of /trunk/gr2lib/CoreTypes.cs

Parent Directory Parent Directory | Revision Log Revision Log


Revision 13 - (show annotations) (download)
Wed Jul 14 09:21:14 2010 UTC (9 years, 1 month ago) by william
File size: 2621 byte(s)
initial commit of coretypes (these have not been tested yet)

1 using System;
2 using System.Collections.Generic;
3 using System.Text;
4
5 using gr2lib.core.typedefs;
6
7 namespace gr2lib.core.coretypes
8 {
9
10
11 #region struct granny_file
12 /// <summary>
13 /// granny_file: update
14 /// </summary>
15 public struct granny_file
16 {
17 #pragma warning disable 0169
18 bool IsByteReversed;
19 unsafe granny_grn_file_header* Header;
20 unsafe granny_grn_file_magic_value* SourceMagicValue;
21 granny_int32x SectionCount;
22 unsafe void** Sections;
23 unsafe bool* Marshalled;
24 unsafe bool* IsUserMemory;
25 unsafe void* ConversionBuffer;
26 #pragma warning restore 0169
27 };
28 #endregion
29
30 #region struct granny_grn_reference
31 /// <summary>
32 /// granny_grn_reference: update
33 /// </summary>
34 public struct granny_grn_reference
35 {
36 #pragma warning disable 0169
37 granny_uint32 SectionIndex;
38 granny_uint32 Offset;
39 #pragma warning restore 0169
40 };// GrannyAlignAttribute;
41 #endregion
42
43 #region struct granny_grn_file_header
44 /// <summary>
45 /// granny_grn_file_header: update
46 /// </summary>
47 public struct granny_grn_file_header
48 {
49 //public granny_grn_file_header()
50 //{
51 // ExtraTags = new granny_uint32[GrannyGRNExtraTagCount];
52 // ReservedUnused = granny_uint32[3];
53 //}
54 #pragma warning disable 0169
55 granny_uint32 Version;
56 granny_uint32 TotalSize;
57 granny_uint32 CRC;
58 granny_uint32 SectionArrayOffset;
59 granny_uint32 SectionArrayCount;
60 granny_grn_reference RootObjectTypeDefinition;
61 granny_grn_reference RootObject;
62 granny_uint32 TypeTag;
63 private const int GrannyGRNExtraTagCount = 4;
64 unsafe granny_uint32* ExtraTags;
65 granny_uint32 StringDatabaseCRC;
66 unsafe granny_uint32* ReservedUnused;
67 #pragma warning restore 0169
68 };// GrannyAlignAttribute;
69 #endregion
70
71 #region struct granny_grn_file_magic_value
72 /// <summary>
73 /// granny_grn_file_magic_value: update
74 /// </summary>
75 public struct granny_grn_file_magic_value
76 {
77 //static granny_grn_file_magic_value()
78 //{
79 // MagicValue = granny_uint32[4];
80 // Reserved = granny_uint32[2];
81 //}
82 #pragma warning disable 0169
83 unsafe granny_uint32* MagicValue;
84 granny_uint32 HeaderSize;
85 granny_uint32 HeaderFormat;
86 unsafe granny_uint32* Reserved;
87 #pragma warning restore 0169
88 };// GrannyAlignAttribute;
89 #endregion
90 }

  ViewVC Help
Powered by ViewVC 1.1.22