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

◆ DocumentTableReader()

System.Reflection.Metadata.Ecma335.DocumentTableReader.DocumentTableReader ( int numberOfRows,
int guidHeapRefSize,
int blobHeapRefSize,
MemoryBlock containingBlock,
int containingBlockOffset )
inlinepackage

Definition at line 23 of file DocumentTableReader.cs.

24 {
25 NumberOfRows = numberOfRows;
26 _isGuidHeapRefSizeSmall = guidHeapRefSize == 2;
27 _isBlobHeapRefSizeSmall = blobHeapRefSize == 2;
28 _hashAlgorithmOffset = blobHeapRefSize;
29 _hashOffset = _hashAlgorithmOffset + guidHeapRefSize;
30 _languageOffset = _hashOffset + blobHeapRefSize;
31 RowSize = _languageOffset + guidHeapRefSize;
32 Block = containingBlock.GetMemoryBlockAt(containingBlockOffset, RowSize * numberOfRows);
33 }
unsafe MemoryBlock GetMemoryBlockAt(int offset, int length)

References System.Reflection.Metadata.Ecma335.DocumentTableReader._hashAlgorithmOffset, System.Reflection.Metadata.Ecma335.DocumentTableReader._hashOffset, System.Reflection.Metadata.Ecma335.DocumentTableReader._isBlobHeapRefSizeSmall, System.Reflection.Metadata.Ecma335.DocumentTableReader._isGuidHeapRefSizeSmall, System.Reflection.Metadata.Ecma335.DocumentTableReader._languageOffset, System.Reflection.Metadata.Ecma335.DocumentTableReader.Block, System.Reflection.Internal.MemoryBlock.GetMemoryBlockAt(), System.Reflection.Metadata.Ecma335.DocumentTableReader.NumberOfRows, and System.Reflection.Metadata.Ecma335.DocumentTableReader.RowSize.