diff options
author | Jb Evain <jbevain@gmail.com> | 2015-07-30 18:25:12 +0300 |
---|---|---|
committer | Jb Evain <jb@evain.net> | 2016-07-13 23:45:31 +0300 |
commit | 7cde491752861a331e091dca601748e9f0741e95 (patch) | |
tree | 71c9191cad1d70adab40ec78fa22c852b98f8412 /Mono.Cecil.Metadata/PdbHeap.cs | |
parent | 7efc4a6de7fba02965daaf407fe557ffee725b79 (diff) |
Add support for the portable pdb format
Diffstat (limited to 'Mono.Cecil.Metadata/PdbHeap.cs')
-rw-r--r-- | Mono.Cecil.Metadata/PdbHeap.cs | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/Mono.Cecil.Metadata/PdbHeap.cs b/Mono.Cecil.Metadata/PdbHeap.cs new file mode 100644 index 0000000..4532e8f --- /dev/null +++ b/Mono.Cecil.Metadata/PdbHeap.cs @@ -0,0 +1,34 @@ +// +// Author: +// Jb Evain (jbevain@gmail.com) +// +// Copyright (c) 2008 - 2015 Jb Evain +// Copyright (c) 2008 - 2011 Novell, Inc. +// +// Licensed under the MIT/X11 license. +// + +using Mono.Cecil.PE; + +using RID = System.UInt32; + +namespace Mono.Cecil.Metadata { + + sealed class PdbHeap : Heap { + + public byte [] Id; + public RID EntryPoint; + public long TypeSystemTables; + public uint [] TypeSystemTableRows; + + public PdbHeap (Section section, uint offset, uint size) + : base (section, offset, size) + { + } + + public bool HasTable (Table table) + { + return (TypeSystemTables & (1L << (int) table)) != 0; + } + } +} |