![]() | Safe |
The SafeNativeMemory type exposes the following members.
Name | Description | |
---|---|---|
![]() | SafeNativeMemory | Initializes a new instance of the SafeNativeMemory class with no buffer allocated. |
![]() | SafeNativeMemory(Int32) | Initializes a new instance of the SafeNativeMemory class. |
![]() | SafeNativeMemory(IntPtr, Int32) | Initializes a new instance of the SafeNativeMemory class. |
Name | Description | |
---|---|---|
![]() | IsInvalid |
When overridden in a derived class, gets a value indicating whether the handle value is invalid.
(Overrides SafeHandleIsInvalid) |
![]() | Size | Gets the size of the allocated buffer. |
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) |