/symbols/pdb/Microsoft.Cci.Pdb/DbiHeader.cs

http://github.com/jbevain/cecil · C# · 52 lines · 47 code · 3 blank · 2 comment · 0 complexity · c94fa6a2d53af3ef489d6ea8a115ba6d MD5 · raw file

  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 struct DbiHeader {
  6. internal DbiHeader(BitAccess bits) {
  7. bits.ReadInt32(out sig);
  8. bits.ReadInt32(out ver);
  9. bits.ReadInt32(out age);
  10. bits.ReadInt16(out gssymStream);
  11. bits.ReadUInt16(out vers);
  12. bits.ReadInt16(out pssymStream);
  13. bits.ReadUInt16(out pdbver);
  14. bits.ReadInt16(out symrecStream);
  15. bits.ReadUInt16(out pdbver2);
  16. bits.ReadInt32(out gpmodiSize);
  17. bits.ReadInt32(out secconSize);
  18. bits.ReadInt32(out secmapSize);
  19. bits.ReadInt32(out filinfSize);
  20. bits.ReadInt32(out tsmapSize);
  21. bits.ReadInt32(out mfcIndex);
  22. bits.ReadInt32(out dbghdrSize);
  23. bits.ReadInt32(out ecinfoSize);
  24. bits.ReadUInt16(out flags);
  25. bits.ReadUInt16(out machine);
  26. bits.ReadInt32(out reserved);
  27. }
  28. internal int sig; // 0..3
  29. internal int ver; // 4..7
  30. internal int age; // 8..11
  31. internal short gssymStream; // 12..13
  32. internal ushort vers; // 14..15
  33. internal short pssymStream; // 16..17
  34. internal ushort pdbver; // 18..19
  35. internal short symrecStream; // 20..21
  36. internal ushort pdbver2; // 22..23
  37. internal int gpmodiSize; // 24..27
  38. internal int secconSize; // 28..31
  39. internal int secmapSize; // 32..35
  40. internal int filinfSize; // 36..39
  41. internal int tsmapSize; // 40..43
  42. internal int mfcIndex; // 44..47
  43. internal int dbghdrSize; // 48..51
  44. internal int ecinfoSize; // 52..55
  45. internal ushort flags; // 56..57
  46. internal ushort machine; // 58..59
  47. internal int reserved; // 60..63
  48. }
  49. }