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

◆ ReadInt64() [3/3]

static unsafe long System.Runtime.InteropServices.Marshal.ReadInt64 ( IntPtr ptr,
int ofs )
inlinestatic

Definition at line 991 of file Marshal.cs.

992 {
993 try
994 {
995 byte* ptr2 = (byte*)(void*)ptr + ofs;
996 if (((int)ptr2 & 7) == 0)
997 {
998 return *(long*)ptr2;
999 }
1000 return Unsafe.ReadUnaligned<long>(ptr2);
1001 }
1002 catch (NullReferenceException)
1003 {
1004 throw new AccessViolationException();
1005 }
1006 }