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

◆ CustomDebugInformationTableReader()

System.Reflection.Metadata.Ecma335.CustomDebugInformationTableReader.CustomDebugInformationTableReader ( int numberOfRows,
bool declaredSorted,
int hasCustomDebugInformationRefSize,
int guidHeapRefSize,
int blobHeapRefSize,
MemoryBlock containingBlock,
int containingBlockOffset )
inlinepackage

Definition at line 23 of file CustomDebugInformationTableReader.cs.

24 {
25 NumberOfRows = numberOfRows;
26 _isHasCustomDebugInformationRefSizeSmall = hasCustomDebugInformationRefSize == 2;
27 _isGuidHeapRefSizeSmall = guidHeapRefSize == 2;
28 _isBlobHeapRefSizeSmall = blobHeapRefSize == 2;
29 _kindOffset = hasCustomDebugInformationRefSize;
30 _valueOffset = _kindOffset + guidHeapRefSize;
31 RowSize = _valueOffset + blobHeapRefSize;
32 Block = containingBlock.GetMemoryBlockAt(containingBlockOffset, RowSize * numberOfRows);
33 if (numberOfRows > 0 && !declaredSorted)
34 {
35 Throw.TableNotSorted(TableIndex.CustomDebugInformation);
36 }
37 }
unsafe MemoryBlock GetMemoryBlockAt(int offset, int length)

References System.Reflection.Metadata.Ecma335.CustomDebugInformationTableReader._isBlobHeapRefSizeSmall, System.Reflection.Metadata.Ecma335.CustomDebugInformationTableReader._isGuidHeapRefSizeSmall, System.Reflection.Metadata.Ecma335.CustomDebugInformationTableReader._isHasCustomDebugInformationRefSizeSmall, System.Reflection.Metadata.Ecma335.CustomDebugInformationTableReader._kindOffset, System.Reflection.Metadata.Ecma335.CustomDebugInformationTableReader._valueOffset, System.Reflection.Metadata.Ecma335.CustomDebugInformationTableReader.Block, System.Reflection.Internal.MemoryBlock.GetMemoryBlockAt(), System.Reflection.Metadata.Ecma335.CustomDebugInformationTableReader.NumberOfRows, System.Reflection.Metadata.Ecma335.CustomDebugInformationTableReader.RowSize, and System.Reflection.Throw.TableNotSorted().