Fix typo in OIDs corresponding to SHA256, SHA384, and SHA512 (#21707)
[mono-project.git] / mcs / tools / pdb2mdb / PdbSlot.cs
blobb2cebbeb95288c74402d0269b5158f0e60aa140a
1 //-----------------------------------------------------------------------------
2 //
3 // Copyright (C) Microsoft Corporation. All Rights Reserved.
4 //
5 //-----------------------------------------------------------------------------
6 using System;
8 namespace Microsoft.Cci.Pdb {
9 internal class PdbSlot {
10 internal uint slot;
11 internal string name;
12 internal ushort flags;
13 internal uint segment;
14 internal uint address;
16 internal PdbSlot(BitAccess bits, out uint typind) {
17 AttrSlotSym slot;
19 bits.ReadUInt32(out slot.index);
20 bits.ReadUInt32(out slot.typind);
21 bits.ReadUInt32(out slot.offCod);
22 bits.ReadUInt16(out slot.segCod);
23 bits.ReadUInt16(out slot.flags);
24 bits.ReadCString(out slot.name);
26 this.slot = slot.index;
27 this.name = slot.name;
28 this.flags = slot.flags;
29 this.segment = slot.segCod;
30 this.address = slot.offCod;
32 typind = slot.typind;