SafeNativeMemory Methods |
The SafeNativeMemory type exposes the following members.
Name | Description | |
---|---|---|
Allocate |
Allocates a buffer with the specified size.
| |
ReadInt32 |
Reads a 32-bit signed integer from unmanaged memory.
| |
ReadIntPtr |
Reads a processor native sized integer from unmanaged memory.
| |
ReleaseHandle |
When overridden in a derived class, executes the code required to free the handle.
(Overrides SafeHandleReleaseHandle.) |
Name | Description | |
---|---|---|
SafeCastT |
Performs a cast from object to T, avoiding possible null violations if T is a value type.
(Defined by ObjectExtensions.) |