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

◆ GetNextHandle()

BlobHandle System.Reflection.Metadata.Ecma335.BlobHeap.GetNextHandle ( BlobHandle handle)
inlinepackage

Definition at line 103 of file BlobHeap.cs.

104 {
105 if (handle.IsVirtual)
106 {
107 return default(BlobHandle);
108 }
109 if (!Block.PeekHeapValueOffsetAndSize(handle.GetHeapOffset(), out var offset, out var size))
110 {
111 return default(BlobHandle);
112 }
113 int num = offset + size;
114 if (num >= Block.Length)
115 {
116 return default(BlobHandle);
117 }
118 return BlobHandle.FromOffset(num);
119 }
bool PeekHeapValueOffsetAndSize(int index, out int offset, out int size)

References System.Reflection.Metadata.Ecma335.BlobHeap.Block, System.Reflection.Metadata.BlobHandle.FromOffset(), System.handle, System.Reflection.Internal.MemoryBlock.Length, System.offset, and System.Reflection.Internal.MemoryBlock.PeekHeapValueOffsetAndSize().