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

◆ GetNextHandle()

StringHandle System.Reflection.Metadata.Ecma335.StringHeap.GetNextHandle ( StringHandle handle)
inlinepackage

Definition at line 135 of file StringHeap.cs.

136 {
137 if (handle.IsVirtual)
138 {
139 return default(StringHandle);
140 }
141 int num = Block.IndexOf(0, handle.GetHeapOffset());
142 if (num == -1 || num == Block.Length - 1)
143 {
144 return default(StringHandle);
145 }
146 return StringHandle.FromOffset(num + 1);
147 }

References System.Reflection.Metadata.Ecma335.StringHeap.Block, System.Reflection.Metadata.StringHandle.FromOffset(), System.handle, System.Reflection.Internal.MemoryBlock.IndexOf(), and System.Reflection.Internal.MemoryBlock.Length.