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

◆ GetRange()

void System.Reflection.Metadata.Ecma335.CustomDebugInformationTableReader.GetRange ( EntityHandle parentHandle,
out int firstImplRowId,
out int lastImplRowId )
inlinepackage

Definition at line 57 of file CustomDebugInformationTableReader.cs.

58 {
59 Block.BinarySearchReferenceRange(NumberOfRows, RowSize, 0, HasCustomDebugInformationTag.ConvertToTag(parentHandle), _isHasCustomDebugInformationRefSizeSmall, out var startRowNumber, out var endRowNumber);
60 if (startRowNumber == -1)
61 {
62 firstImplRowId = 1;
63 lastImplRowId = 0;
64 }
65 else
66 {
67 firstImplRowId = startRowNumber + 1;
68 lastImplRowId = endRowNumber + 1;
69 }
70 }
void BinarySearchReferenceRange(int rowCount, int rowSize, int referenceOffset, uint referenceValue, bool isReferenceSmall, out int startRowNumber, out int endRowNumber)

References System.Reflection.Metadata.Ecma335.CustomDebugInformationTableReader._isHasCustomDebugInformationRefSizeSmall, System.Reflection.Internal.MemoryBlock.BinarySearchReferenceRange(), System.Reflection.Metadata.Ecma335.CustomDebugInformationTableReader.Block, System.Reflection.Metadata.Ecma335.HasCustomDebugInformationTag.ConvertToTag(), System.Reflection.Metadata.Ecma335.CustomDebugInformationTableReader.NumberOfRows, and System.Reflection.Metadata.Ecma335.CustomDebugInformationTableReader.RowSize.