/// <summary> /// Create a new ModuleTableRow instance. /// </summary> /// <param name="buff">Buffer which contains the row.</param> /// <param name="offset">Offset in the buff, where the header starts.</param> /// <param name="metaDataStreamString">Meta Data stream "String" object to resolve strings in /// the ModuleTableRow.</param> /// <param name="metaDataStreamGuid">Meta Data stream "GUID" object to resolve GUIDs in /// the ModuleTableRow.</param> /// <param name="heapOffsetSizes">Computes sizes of the heap bases indexes.</param> public ModuleTableRow( byte[] buff, uint offset, IMETADATASTREAM_STRING metaDataStreamString, IMETADATASTREAM_GUID metaDataStreamGuid, IHeapOffsetSizes heapOffsetSizes ) : base(buff, offset, heapOffsetSizes) { _metaDataStreamString = metaDataStreamString; _metaDataStreamGuid = metaDataStreamGuid; }
public ModuleTableParser( byte[] buff, uint offset, uint numOfRows, IMETADATASTREAM_STRING metaDataStreamString, IMETADATASTREAM_GUID metaDataStreamGuid, HeapOffsetSizes heapOffsetSizes ) : base(buff, offset) { _numOfRows = numOfRows; _metaDataStreamString = metaDataStreamString; _metaDataStreamGuid = metaDataStreamGuid; _heapOffsetSizes = heapOffsetSizes; }
/// <summary> /// Create a new MetaDataTablesParser instance. /// </summary> /// <param name="buff">Buffer containing all Meta Data Tables.</param> /// <param name="metaDataTablesHdr">The Meta Data Tables Header structure of the .Net header.</param> /// <param name="metaDataStreamString">Meta Data stream "String".</param> /// <param name="metaDataStreamGuid">Meta Data stream "GUID".</param> /// <param name="metaDataStreamBlob">Meta Data stream "Blob".</param> public MetaDataTablesParser( byte[] buff, METADATATABLESHDR metaDataTablesHdr, IMETADATASTREAM_STRING metaDataStreamString, IMETADATASTREAM_GUID metaDataStreamGuid, IMETADATASTREAM_BLOB metaDataStreamBlob ) : base(buff, 0) { _metaDataTablesHdr = metaDataTablesHdr; _metaDataStreamString = metaDataStreamString; _metaDataStreamGuid = metaDataStreamGuid; _metaDataStreamBlob = metaDataStreamBlob; _heapOffsetSizes = new HeapOffsetSizes(metaDataTablesHdr.HeapOffsetSizes); InitParsers(); }