Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
MethodDebugInformationTableReader.cs
Go to the documentation of this file.
2
4
5internal readonly struct MethodDebugInformationTableReader
6{
7 internal readonly int NumberOfRows;
8
9 private readonly bool _isDocumentRefSmall;
10
11 private readonly bool _isBlobHeapRefSizeSmall;
12
13 private readonly int _sequencePointsOffset;
14
15 internal readonly int RowSize;
16
17 internal readonly MemoryBlock Block;
18
19 internal MethodDebugInformationTableReader(int numberOfRows, int documentRefSize, int blobHeapRefSize, MemoryBlock containingBlock, int containingBlockOffset)
20 {
21 NumberOfRows = numberOfRows;
22 _isDocumentRefSmall = documentRefSize == 2;
23 _isBlobHeapRefSizeSmall = blobHeapRefSize == 2;
24 _sequencePointsOffset = documentRefSize;
25 RowSize = _sequencePointsOffset + blobHeapRefSize;
26 Block = containingBlock.GetMemoryBlockAt(containingBlockOffset, RowSize * numberOfRows);
27 }
28
34
40}
int PeekReference(int offset, bool smallRefSize)
unsafe MemoryBlock GetMemoryBlockAt(int offset, int length)
int PeekHeapReference(int offset, bool smallRefSize)
static BlobHandle FromOffset(int heapOffset)
Definition BlobHandle.cs:34
static DocumentHandle FromRowId(int rowId)
MethodDebugInformationTableReader(int numberOfRows, int documentRefSize, int blobHeapRefSize, MemoryBlock containingBlock, int containingBlockOffset)