public MetadataRowReader(MetadataTableReader mtrv)
 {
     m_mtrv         = mtrv;
     m_binaryReader = mtrv.GetReader();
     m_metadataRoot = mtrv.GetMetadataRoot();
     m_ciCache      = new Hashtable();
 }
 public MetadataRowReader(MetadataTableReader mtrv)
 {
     m_mtrv = mtrv;
     m_binaryReader = mtrv.GetReader ();
     m_metadataRoot = mtrv.GetMetadataRoot ();
     m_ciCache = new Hashtable ();
 }
 public MetadataRowReader(MetadataTableReader mtrv)
 {
     m_mtrv         = mtrv;
     m_binaryReader = mtrv.GetReader();
     m_metadataRoot = mtrv.GetMetadataRoot();
     m_ciCache      = new int [13];
     m_counter      = new Utilities.TableRowCounter(m_mtrv.GetNumberOfRows);
 }
 public override void TerminateMetadataRoot(MetadataRoot root)
 {
     SetHeapIndexSize (root.Streams.StringsHeap, 0x01);
     SetHeapIndexSize (root.Streams.GuidHeap, 0x02);
     SetHeapIndexSize (root.Streams.BlobHeap, 0x04);
     m_tableReader = new MetadataTableReader (this);
     root.Streams.TablesHeap.Tables.Accept (m_tableReader);
 }
Beispiel #5
0
 public override void TerminateMetadataRoot(MetadataRoot root)
 {
     SetHeapIndexSize(root.Streams.StringsHeap, 0x01);
     SetHeapIndexSize(root.Streams.GuidHeap, 0x02);
     SetHeapIndexSize(root.Streams.BlobHeap, 0x04);
     m_tableReader = new MetadataTableReader(this);
     root.Streams.TablesHeap.Tables.Accept(m_tableReader);
 }
 public StructureReader(ImageReader ir)
 {
     m_ir = ir;
     m_img = ir.Image;
     m_streams = m_img.MetadataRoot.Streams;
     m_tHeap = m_streams.TablesHeap;
     m_tableReader = ir.MetadataReader.TableReader;
 }
Beispiel #7
0
		public MetadataRowReader (MetadataTableReader mtrv)
		{
			m_mtrv = mtrv;
			m_binaryReader = mtrv.GetReader ();
			m_metadataRoot = mtrv.GetMetadataRoot ();
			m_ciCache = new int [13];
			m_counter = new Utilities.TableRowCounter (m_mtrv.GetNumberOfRows);
		}
		public StructureReader (ImageReader ir)
		{
			if (ir.Image.CLIHeader == null)
				throw new ImageFormatException ("The image is not a managed assembly");

			m_ir = ir;
			m_img = ir.Image;
			m_streams = m_img.MetadataRoot.Streams;
			m_tHeap = m_streams.TablesHeap;
			m_tableReader = ir.MetadataReader.TableReader;
		}
Beispiel #9
0
 public ReflectionReader(ModuleDefinition module)
 {
     m_module = module;
     m_reader = m_module.ImageReader;
     m_root = m_module.Image.MetadataRoot;
     m_tHeap = m_root.Streams.TablesHeap;
     m_checkDeleted = (m_tHeap.HeapSizes & 0x80) != 0;
     if (m_reader != null)
         m_tableReader = m_reader.MetadataReader.TableReader;
     m_codeReader = new CodeReader (this);
     m_sigReader = new SignatureReader (m_root, this);
     m_isCorlib = module.Assembly.Name.Name == Constants.Corlib;
 }
		public MetadataRowReader (MetadataTableReader mtrv)
		{
			m_mtrv = mtrv;
			m_binaryReader = mtrv.GetReader ();
			m_metadataRoot = mtrv.GetMetadataRoot ();
			m_ciCache = new int [<%= $coded_indexes.length %>];
Beispiel #11
0
 public MetadataRowReader(MetadataTableReader mtrv)
 {
     m_mtrv         = mtrv;
     m_binaryReader = mtrv.GetReader();
     m_metadataRoot = mtrv.GetMetadataRoot();
     m_ciCache      = new int [< %= $coded_indexes.length % >];