Debian Codegraph @

symbols/pdb/Microsoft.Cci.Pdb/PdbSlot.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 class PdbSlot {
15 internal uint slot;
16 internal uint typeToken;
17 internal string name;
18 internal ushort flags;
19 //internal uint segment;
20 //internal uint address;
21
22 internal PdbSlot(BitAccess bits) {
23 AttrSlotSym slot;
24
25 bits.ReadUInt32(out slot.index);
26 bits.ReadUInt32(out slot.typind);
27 bits.ReadUInt32(out slot.offCod);
28 bits.ReadUInt16(out slot.segCod);
29 bits.ReadUInt16(out slot.flags);
30 bits.ReadCString(out slot.name);
31
32 this.slot = slot.index;
33 this.typeToken = slot.typind;
34 this.name = slot.name;
35 this.flags = slot.flags;
36 //this.segment = slot.segCod;
37 //this.address = slot.offCod;
38
39 }
40 }
41 }