DbiDbgHdr.cs 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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 struct DbiDbgHdr {
  14. internal DbiDbgHdr(BitAccess bits) {
  15. bits.ReadUInt16(out snFPO);
  16. bits.ReadUInt16(out snException);
  17. bits.ReadUInt16(out snFixup);
  18. bits.ReadUInt16(out snOmapToSrc);
  19. bits.ReadUInt16(out snOmapFromSrc);
  20. bits.ReadUInt16(out snSectionHdr);
  21. bits.ReadUInt16(out snTokenRidMap);
  22. bits.ReadUInt16(out snXdata);
  23. bits.ReadUInt16(out snPdata);
  24. bits.ReadUInt16(out snNewFPO);
  25. bits.ReadUInt16(out snSectionHdrOrig);
  26. }
  27. internal ushort snFPO; // 0..1
  28. internal ushort snException; // 2..3 (deprecated)
  29. internal ushort snFixup; // 4..5
  30. internal ushort snOmapToSrc; // 6..7
  31. internal ushort snOmapFromSrc; // 8..9
  32. internal ushort snSectionHdr; // 10..11
  33. internal ushort snTokenRidMap; // 12..13
  34. internal ushort snXdata; // 14..15
  35. internal ushort snPdata; // 16..17
  36. internal ushort snNewFPO; // 18..19
  37. internal ushort snSectionHdrOrig; // 20..21
  38. }
  39. }