Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ ModuleRefTableReader()

System.Reflection.Metadata.Ecma335.ModuleRefTableReader.ModuleRefTableReader ( int numberOfRows,
int stringHeapRefSize,
MemoryBlock containingBlock,
int containingBlockOffset )
inlinepackage

Definition at line 17 of file ModuleRefTableReader.cs.

18 {
19 NumberOfRows = numberOfRows;
20 _IsStringHeapRefSizeSmall = stringHeapRefSize == 2;
21 _NameOffset = 0;
22 RowSize = _NameOffset + stringHeapRefSize;
23 Block = containingBlock.GetMemoryBlockAt(containingBlockOffset, RowSize * numberOfRows);
24 }
unsafe MemoryBlock GetMemoryBlockAt(int offset, int length)

References System.Reflection.Metadata.Ecma335.ModuleRefTableReader._IsStringHeapRefSizeSmall, System.Reflection.Metadata.Ecma335.ModuleRefTableReader._NameOffset, System.Reflection.Metadata.Ecma335.ModuleRefTableReader.Block, System.Reflection.Internal.MemoryBlock.GetMemoryBlockAt(), System.Reflection.Metadata.Ecma335.ModuleRefTableReader.NumberOfRows, and System.Reflection.Metadata.Ecma335.ModuleRefTableReader.RowSize.