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

◆ Pointer

unsafe byte* System.Reflection.Internal.ByteArrayMemoryProvider.Pointer
getpackage

Definition at line 17 of file ByteArrayMemoryProvider.cs.

18 {
19 get
20 {
21 if (_pinned == null)
22 {
23 PinnedObject pinnedObject = new PinnedObject(ImmutableByteArrayInterop.DangerousGetUnderlyingArray(_array));
24 if (Interlocked.CompareExchange(ref _pinned, pinnedObject, null) != null)
25 {
26 pinnedObject.Dispose();
27 }
28 }
29 return _pinned.Pointer;
30 }
31 }
static int CompareExchange(ref int location1, int value, int comparand)