Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
Microsoft.Win32.SafeHandles.SafeLocalAllocHandle Class Referencesealed

Public Member Functions

 SafeLocalAllocHandle ()
 
 SafeLocalAllocHandle ()
 
 SafeLocalAllocHandle ()
 
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

override bool ReleaseHandle ()
 
override bool ReleaseHandle ()
 
override bool ReleaseHandle ()
 
virtual void Dispose (bool disposing)
 

Protected Attributes

IntPtr handle
 

Package Functions

 SafeLocalAllocHandle (IntPtr handle)
 
void SetHandle (IntPtr handle)
 

Static Package Functions

static Microsoft.Win32.SafeHandles.SafeLocalAllocHandle LocalAlloc (int cb)
 
static SafeLocalAllocHandle LocalAlloc (int cb)
 
static SafeLocalAllocHandle LocalAlloc (int cb)
 
static uint AlignedSizeOf< T > ()
 
static uint SizeOf< T > ()
 

Static Package Attributes

static readonly Microsoft.Win32.SafeHandles.SafeLocalAllocHandle Zero = new Microsoft.Win32.SafeHandles.SafeLocalAllocHandle()
 

Properties

static SafeLocalAllocHandle InvalidHandle [get]
 
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 5 of file SafeLocalAllocHandle.cs.


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