PdbSlot.cs 1.1 KB

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