Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
System.Runtime.InteropServices.SafeBuffer Class Referenceabstract

Public Member Functions

void Initialize (ulong numBytes)
 
void Initialize (uint numElements, uint sizeOfEachElement)
 
void Initialize< T > (uint numElements)
 
unsafe void AcquirePointer (ref byte *pointer)
 
void ReleasePointer ()
 
unsafe T Read< T > (ulong byteOffset)
 
void ReadArray< T > (ulong byteOffset, T[] array, int index, int count)
 
unsafe void ReadSpan< T > (ulong byteOffset, Span< T > buffer)
 
unsafe void Write< T > (ulong byteOffset, T value)
 
void WriteArray< T > (ulong byteOffset, T[] array, int index, int count)
 
unsafe void WriteSpan< T > (ulong byteOffset, ReadOnlySpan< T > data)
 
IntPtr DangerousGetHandle ()
 
void Close ()
 
void Dispose ()
 
void SetHandleAsInvalid ()
 
void DangerousAddRef (ref bool success)
 
void DangerousRelease ()
 

Protected Member Functions

 SafeBuffer (bool ownsHandle)
 
virtual void Dispose (bool disposing)
 
bool ReleaseHandle ()
 

Protected Attributes

IntPtr handle
 

Package Functions

void SetHandle (IntPtr handle)
 

Static Package Functions

static uint AlignedSizeOf< T > ()
 
static uint SizeOf< T > ()
 

Properties

static nuint Uninitialized [get]
 
ulong ByteLength [get]
 
override bool IsInvalid [get]
 
bool OwnsHandle [get]
 
bool IsClosed [get]
 

Private Member Functions

unsafe void SpaceCheck (byte *ptr, nuint sizeInBytes)
 
void InternalRelease (bool disposeOrFinalizeOperation)
 

Static Private Member Functions

static void NotEnoughRoom ()
 
static InvalidOperationException NotInitialized ()
 

Private Attributes

nuint _numBytes
 
volatile int _state
 
readonly bool _ownsHandle
 
volatile bool _fullyInitialized
 

Detailed Description

Definition at line 7 of file SafeBuffer.cs.


The documentation for this class was generated from the following file: