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

◆ GetDebuggerDisplay() [3/3]

string System.Reflection.Internal.MemoryBlock.GetDebuggerDisplay ( out int displayedBytes)
inlinepackage

Definition at line 72 of file MemoryBlock.cs.

73 {
74 displayedBytes = Math.Min(Length, 64);
75 string text = BitConverter.ToString(PeekBytes(0, displayedBytes));
76 if (displayedBytes < Length)
77 {
78 text += "-...";
79 }
80 return text;
81 }
unsafe byte[] PeekBytes(int offset, int byteCount)

References System.Reflection.Internal.MemoryBlock.Length, System.Math.Min(), System.Reflection.Internal.MemoryBlock.PeekBytes(), System.text, and System.BitConverter.ToString().