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

http://github.com/jbevain/cecil · C# · 35 lines · 25 code · 3 blank · 7 comment · 0 complexity · 333c3fee453d3e702524429de7a44512 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 DbiSecCon {
  6. internal DbiSecCon(BitAccess bits) {
  7. bits.ReadInt16(out section);
  8. bits.ReadInt16(out pad1);
  9. bits.ReadInt32(out offset);
  10. bits.ReadInt32(out size);
  11. bits.ReadUInt32(out flags);
  12. bits.ReadInt16(out module);
  13. bits.ReadInt16(out pad2);
  14. bits.ReadUInt32(out dataCrc);
  15. bits.ReadUInt32(out relocCrc);
  16. //if (pad1 != 0 || pad2 != 0) {
  17. // throw new PdbException("Invalid DBI section. "+
  18. // "(pad1={0}, pad2={1})",
  19. // pad1, pad2);
  20. //}
  21. }
  22. internal short section; // 0..1
  23. internal short pad1; // 2..3
  24. internal int offset; // 4..7
  25. internal int size; // 8..11
  26. internal uint flags; // 12..15
  27. internal short module; // 16..17
  28. internal short pad2; // 18..19
  29. internal uint dataCrc; // 20..23
  30. internal uint relocCrc; // 24..27
  31. }
  32. }