Free cookie consent management tool by TermsFeed Policy Generator

source: trunk/HeuristicLab.ExtLibs/HeuristicLab.Cecil/0.9.5/Mono.Cecil-0.9.5/Symbols/Mono.Cecil.Pdb/Microsoft.Cci.Pdb/PdbSlot.cs @ 17078

Last change on this file since 17078 was 11700, checked in by jkarder, 10 years ago

#2077: created branch and added first version

File size: 950 bytes
Line 
1//-----------------------------------------------------------------------------
2//
3// Copyright (C) Microsoft Corporation.  All Rights Reserved.
4//
5//-----------------------------------------------------------------------------
6using System;
7
8namespace 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;
15
16    internal PdbSlot(BitAccess bits, out uint typind) {
17      AttrSlotSym slot;
18
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);
25
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;
31
32      typind = slot.typind;
33    }
34  }
35}
Note: See TracBrowser for help on using the repository browser.