Click or drag to resize

SafeNativeMemory Methods

The SafeNativeMemory type exposes the following members.

Methods
 NameDescription
Public methodAllocate Allocates a buffer with the specified size.
Public methodReadInt32 Reads a 32-bit signed integer from unmanaged memory.
Public methodReadIntPtr Reads a processor native sized integer from unmanaged memory.
Protected methodReleaseHandle When overridden in a derived class, executes the code required to free the handle.
(Overrides SafeHandleReleaseHandle)
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