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

Annotation of /trunk/gr2lib/CoreTypes.cs

Parent Directory Parent Directory | Revision Log Revision Log


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

1 william 6 using System;
2     using System.Collections.Generic;
3     using System.Text;
4    
5 william 13 using gr2lib.core.typedefs;
6 william 8
7 william 13 namespace gr2lib.core.coretypes
8 william 6 {
9 william 13
10    
11     #region struct granny_file
12     /// <summary>
13     /// granny_file: update
14     /// </summary>
15     public struct granny_file
16 william 6 {
17 william 8 #pragma warning disable 0169
18 william 13 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 william 8 #pragma warning restore 0169
27 william 13 };
28     #endregion
29 william 8
30 william 13 #region struct granny_grn_reference
31     /// <summary>
32     /// granny_grn_reference: update
33     /// </summary>
34     public struct granny_grn_reference
35     {
36 william 8 #pragma warning disable 0169
37 william 13 granny_uint32 SectionIndex;
38     granny_uint32 Offset;
39 william 8 #pragma warning restore 0169
40 william 13 };// GrannyAlignAttribute;
41     #endregion
42 william 8
43 william 13 #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 william 8 #pragma warning disable 0169
55 william 13 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 william 8 #pragma warning restore 0169
68 william 13 };// GrannyAlignAttribute;
69     #endregion
70 william 8
71 william 13 #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 william 8 #pragma warning disable 0169
83 william 13 unsafe granny_uint32* MagicValue;
84     granny_uint32 HeaderSize;
85     granny_uint32 HeaderFormat;
86     unsafe granny_uint32* Reserved;
87 william 8 #pragma warning restore 0169
88 william 13 };// GrannyAlignAttribute;
89     #endregion
90 william 6 }

  ViewVC Help
Powered by ViewVC 1.1.22