PdbHeap.cs 594 B

12345678910111213141516171819202122232425262728293031323334
  1. //
  2. // Author:
  3. // Jb Evain (jbevain@gmail.com)
  4. //
  5. // Copyright (c) 2008 - 2015 Jb Evain
  6. // Copyright (c) 2008 - 2011 Novell, Inc.
  7. //
  8. // Licensed under the MIT/X11 license.
  9. //
  10. using ILRuntime.Mono.Cecil.PE;
  11. using RID = System.UInt32;
  12. namespace ILRuntime.Mono.Cecil.Metadata {
  13. sealed class PdbHeap : Heap {
  14. public byte [] Id;
  15. public RID EntryPoint;
  16. public long TypeSystemTables;
  17. public uint [] TypeSystemTableRows;
  18. public PdbHeap (byte [] data)
  19. : base (data)
  20. {
  21. }
  22. public bool HasTable (Table table)
  23. {
  24. return (TypeSystemTables & (1L << (int) table)) != 0;
  25. }
  26. }
  27. }