Class SafeBufferExtensions
Represents extensions for SafeBuffer type.
Inherited Members
Namespace: DotNext.Runtime.InteropServices
Assembly: DotNext.dll
Syntax
public static class SafeBufferExtensions
Methods
| Edit this page View SourceAcquirePointer(SafeBuffer)
Obtains managed pointer from buffer for a block of memory.
Declaration
public static ref byte AcquirePointer(this SafeBuffer buffer)
Parameters
Type | Name | Description |
---|---|---|
SafeBuffer | buffer | The buffer. |
Returns
Type | Description |
---|---|
byte | A managed pointer to the buffer; or NullRef<T>() if buffer is invalid. |