PageRenderTime 6ms CodeModel.GetById 1ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/symbols/pdb/Microsoft.Cci.Pdb/DbiHeader.cs

http://github.com/jbevain/cecil
C# | 52 lines | 47 code | 3 blank | 2 comment | 0 complexity | c94fa6a2d53af3ef489d6ea8a115ba6d MD5 | raw file
 1// Copyright (c) Microsoft. All rights reserved.
 2// Licensed under the MIT license. See LICENSE file in the project root for full license information.
 3
 4using System;
 5
 6namespace Microsoft.Cci.Pdb {
 7  internal struct DbiHeader {
 8    internal DbiHeader(BitAccess bits) {
 9      bits.ReadInt32(out sig);
10      bits.ReadInt32(out ver);
11      bits.ReadInt32(out age);
12      bits.ReadInt16(out gssymStream);
13      bits.ReadUInt16(out vers);
14      bits.ReadInt16(out pssymStream);
15      bits.ReadUInt16(out pdbver);
16      bits.ReadInt16(out symrecStream);
17      bits.ReadUInt16(out pdbver2);
18      bits.ReadInt32(out gpmodiSize);
19      bits.ReadInt32(out secconSize);
20      bits.ReadInt32(out secmapSize);
21      bits.ReadInt32(out filinfSize);
22      bits.ReadInt32(out tsmapSize);
23      bits.ReadInt32(out mfcIndex);
24      bits.ReadInt32(out dbghdrSize);
25      bits.ReadInt32(out ecinfoSize);
26      bits.ReadUInt16(out flags);
27      bits.ReadUInt16(out machine);
28      bits.ReadInt32(out reserved);
29    }
30
31    internal int sig;                        // 0..3
32    internal int ver;                        // 4..7
33    internal int age;                        // 8..11
34    internal short gssymStream;                // 12..13
35    internal ushort vers;                       // 14..15
36    internal short pssymStream;                // 16..17
37    internal ushort pdbver;                     // 18..19
38    internal short symrecStream;               // 20..21
39    internal ushort pdbver2;                    // 22..23
40    internal int gpmodiSize;                 // 24..27
41    internal int secconSize;                 // 28..31
42    internal int secmapSize;                 // 32..35
43    internal int filinfSize;                 // 36..39
44    internal int tsmapSize;                  // 40..43
45    internal int mfcIndex;                   // 44..47
46    internal int dbghdrSize;                 // 48..51
47    internal int ecinfoSize;                 // 52..55
48    internal ushort flags;                      // 56..57
49    internal ushort machine;                    // 58..59
50    internal int reserved;                   // 60..63
51  }
52}