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

◆ GetDebuggerDisplay() [2/3]

unsafe string System.Reflection.Internal.MemoryBlock.GetDebuggerDisplay ( int offset)
inlinepackage

Definition at line 83 of file MemoryBlock.cs.

84 {
85 if (Pointer == null)
86 {
87 return "<null>";
88 }
89 int displayedBytes;
90 string debuggerDisplay = GetDebuggerDisplay(out displayedBytes);
91 if (offset < displayedBytes)
92 {
93 return debuggerDisplay.Insert(offset * 3, "*");
94 }
95 if (displayedBytes == Length)
96 {
97 return debuggerDisplay + "*";
98 }
99 return debuggerDisplay + "*...";
100 }

References System.Reflection.Internal.MemoryBlock.GetDebuggerDisplay(), System.Reflection.Internal.MemoryBlock.Length, and System.offset.