Click or drag to resize

SafeNativeMemoryT Methods

The SafeNativeMemoryT type exposes the following members.

Methods
 NameDescription
Public methodAllocate Allocates a buffer with the specified size.
(Inherited from SafeNativeMemory)
Public methodReadInt32 Reads a 32-bit signed integer from unmanaged memory.
(Inherited from SafeNativeMemory)
Public methodReadIntPtr Reads a processor native sized integer from unmanaged memory.
(Inherited from SafeNativeMemory)
Protected methodReleaseHandle When overridden in a derived class, executes the code required to free the handle.
(Inherited from SafeNativeMemory)
Public methodToStructure Marshal the memory from native to .NET.
Top
Extension Methods
 NameDescription
Public Extension MethodSafeCastT Performs a cast from object to T, avoiding possible null violations if T is a value type.
(Defined by ObjectExtensions)
Top
See Also