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

◆ ReadByte() [2/3]

static unsafe byte System.Runtime.InteropServices.Marshal.ReadByte ( IntPtr ptr,
int ofs )
inlinestatic

Definition at line 914 of file Marshal.cs.

915 {
916 try
917 {
918 byte* ptr2 = (byte*)(void*)ptr + ofs;
919 return *ptr2;
920 }
921 catch (NullReferenceException)
922 {
923 throw new AccessViolationException();
924 }
925 }