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

◆ PtrToStringUni() [2/2]

static unsafe string System.Runtime.InteropServices.Marshal.PtrToStringUni ( IntPtr ptr,
int len )
inlinestatic

Definition at line 661 of file Marshal.cs.

662 {
663 if (ptr == IntPtr.Zero)
664 {
665 throw new ArgumentNullException("ptr");
666 }
667 if (len < 0)
668 {
669 throw new ArgumentOutOfRangeException("len", len, SR.ArgumentOutOfRange_NeedNonNegNum);
670 }
671 return new string((char*)(void*)ptr, 0, len);
672 }

References System.SR.ArgumentOutOfRange_NeedNonNegNum, System.len, and System.IntPtr.Zero.