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