Welcome to mirror list, hosted at ThFree Co, Russian Federation.

PdbSlot.cs « Microsoft.Cci.Pdb « pdb « symbols - github.com/mono/cecil.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: b2cebbeb95288c74402d0269b5158f0e60aa140a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
//-----------------------------------------------------------------------------
//
// Copyright (C) Microsoft Corporation.  All Rights Reserved.
//
//-----------------------------------------------------------------------------
using System;

namespace Microsoft.Cci.Pdb {
  internal class PdbSlot {
    internal uint slot;
    internal string name;
    internal ushort flags;
    internal uint segment;
    internal uint address;

    internal PdbSlot(BitAccess bits, out uint typind) {
      AttrSlotSym slot;

      bits.ReadUInt32(out slot.index);
      bits.ReadUInt32(out slot.typind);
      bits.ReadUInt32(out slot.offCod);
      bits.ReadUInt16(out slot.segCod);
      bits.ReadUInt16(out slot.flags);
      bits.ReadCString(out slot.name);

      this.slot = slot.index;
      this.name = slot.name;
      this.flags = slot.flags;
      this.segment = slot.segCod;
      this.address = slot.offCod;

      typind = slot.typind;
    }
  }
}