ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/gr2lib/trunk/gr2lib/core/coretypes/CoreTypes.cs
Revision: 30
Committed: Wed Jul 14 18:31:54 2010 UTC (12 years, 4 months ago) by william
File size: 2619 byte(s)
Log Message:
seperated source files into folder for easier grouping of related classes

File Contents

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