/// <summary> /// Create a new TypeRef Table Row instance. /// </summary> /// <param name="buff">Buffer containing the row.</param> /// <param name="offset">Offset in the buffer where the row starts.</param> /// <param name="heapOffsetBasedIndexSizes">Computes sizes of the heap bases indexes.</param> public TypeRefTableRow(byte[] buff, uint offset, HeapOffsetBasedIndexSizes heapOffsetBasedIndexSizes) : base(buff, offset) { _heapOffsetBasedIndexSizes = heapOffsetBasedIndexSizes; }
/// <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="heapOffsetSizes">Computes sizes of the heap bases indexes.</param> public ModuleTableRow(byte[] buff, uint offset, HeapOffsetBasedIndexSizes heapOffsetSizes) : base(buff, offset) { _heapIndexSizes = heapOffsetSizes; }
/// <summary> /// Create a new instance of the ModuleTable. /// </summary> /// <param name="buff">Buffer containing the ModuleTable.</param> /// <param name="offset">Offset to the ModuleTable in the buffer.</param> /// <param name="numberOfRows">Number of rows of the table.</param> /// <param name="heapOffsetSizes">The HeapOffsetSizes flag of the Meta Data Tables Header.</param> public ModuleTable(byte[] buff, uint offset, uint numberOfRows, byte heapOffsetSizes) : base(buff, offset, numberOfRows) { _heapOffsetIndexSizes = new HeapOffsetBasedIndexSizes(heapOffsetSizes); }