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

Contents of /trunk/gr2lib/core/coretypes/CoreTypes.cs

Parent Directory Parent Directory | Revision Log Revision Log


Revision 30 - (show annotations) (download)
Wed Jul 14 18:31:54 2010 UTC (9 years, 6 months ago) by william
File size: 2619 byte(s)
seperated source files into folder for easier grouping of related classes

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 #region struct granny_file
11 /// <summary>
12 /// granny_file: update
13 /// </summary>
14 public struct granny_file
15 {
16 #pragma warning disable 0169
17 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 #pragma warning restore 0169
26 };
27 #endregion
28
29 #region struct granny_grn_reference
30 /// <summary>
31 /// granny_grn_reference: update
32 /// </summary>
33 public struct granny_grn_reference
34 {
35 #pragma warning disable 0169
36 granny_uint32 SectionIndex;
37 granny_uint32 Offset;
38 #pragma warning restore 0169
39 };// GrannyAlignAttribute;
40 #endregion
41
42 #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 #pragma warning disable 0169
54 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 #pragma warning restore 0169
67 };// GrannyAlignAttribute;
68 #endregion
69
70 #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 #pragma warning disable 0169
82 unsafe granny_uint32* MagicValue;
83 granny_uint32 HeaderSize;
84 granny_uint32 HeaderFormat;
85 unsafe granny_uint32* Reserved;
86 #pragma warning restore 0169
87 };// GrannyAlignAttribute;
88 #endregion
89 }

  ViewVC Help
Powered by ViewVC 1.1.22