PdbSlot.cs 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. //-----------------------------------------------------------------------------
  2. //
  3. // Copyright (c) Microsoft. All rights reserved.
  4. // This code is licensed under the Microsoft Public License.
  5. // THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
  6. // ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
  7. // IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR
  8. // PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.
  9. //
  10. //-----------------------------------------------------------------------------
  11. using System;
  12. namespace Microsoft.Cci.Pdb {
  13. internal class PdbSlot {
  14. internal uint slot;
  15. internal string name;
  16. internal ushort flags;
  17. //internal uint segment;
  18. //internal uint address;
  19. internal PdbSlot(BitAccess bits, out uint typind) {
  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.name = slot.name;
  29. this.flags = slot.flags;
  30. //this.segment = slot.segCod;
  31. //this.address = slot.offCod;
  32. typind = slot.typind;
  33. }
  34. }
  35. }