Debian Codegraph @

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

raw
1 //-----------------------------------------------------------------------------
2 //
3 // Copyright (c) Microsoft. All rights reserved.
4 // This code is licensed under the Microsoft Public License.
5 // THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
6 // ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
7 // IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR
8 // PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.
9 //
10 //-----------------------------------------------------------------------------
11 using System;
12
13 namespace Microsoft.Cci.Pdb {
14 internal struct DbiHeader {
15 internal DbiHeader(BitAccess bits) {
16 bits.ReadInt32(out sig);
17 bits.ReadInt32(out ver);
18 bits.ReadInt32(out age);
19 bits.ReadInt16(out gssymStream);
20 bits.ReadUInt16(out vers);
21 bits.ReadInt16(out pssymStream);
22 bits.ReadUInt16(out pdbver);
23 bits.ReadInt16(out symrecStream);
24 bits.ReadUInt16(out pdbver2);
25 bits.ReadInt32(out gpmodiSize);
26 bits.ReadInt32(out secconSize);
27 bits.ReadInt32(out secmapSize);
28 bits.ReadInt32(out filinfSize);
29 bits.ReadInt32(out tsmapSize);
30 bits.ReadInt32(out mfcIndex);
31 bits.ReadInt32(out dbghdrSize);
32 bits.ReadInt32(out ecinfoSize);
33 bits.ReadUInt16(out flags);
34 bits.ReadUInt16(out machine);
35 bits.ReadInt32(out reserved);
36 }
37
38 internal int sig; // 0..3
39 internal int ver; // 4..7
40 internal int age; // 8..11
41 internal short gssymStream; // 12..13
42 internal ushort vers; // 14..15
43 internal short pssymStream; // 16..17
44 internal ushort pdbver; // 18..19
45 internal short symrecStream; // 20..21
46 internal ushort pdbver2; // 22..23
47 internal int gpmodiSize; // 24..27
48 internal int secconSize; // 28..31
49 internal int secmapSize; // 32..35
50 internal int filinfSize; // 36..39
51 internal int tsmapSize; // 40..43
52 internal int mfcIndex; // 44..47
53 internal int dbghdrSize; // 48..51
54 internal int ecinfoSize; // 52..55
55 internal ushort flags; // 56..57
56 internal ushort machine; // 58..59
57 internal int reserved; // 60..63
58 }
59 }