Struct UnmanagedMemory<T>
Represents a handle to the value of type T allocated in the unmanaged memory.
Inherited Members
Namespace: DotNext.Runtime.InteropServices
Assembly: DotNext.Unsafe.dll
Syntax
public struct UnmanagedMemory<T> : IUnmanagedMemory, IDisposable, ISupplier<Stream>, IFunctional<Func<Stream>> where T : unmanagedType Parameters
| Name | Description | 
|---|---|
| T | The type of the value. | 
Constructors
| Edit this page View SourceUnmanagedMemory()
Represents a handle to the value of type T allocated in the unmanaged memory.
Declaration
public UnmanagedMemory()UnmanagedMemory(T)
Allocates a new unmanaged memory for the type T and places
the specified value to the allocated space.
Declaration
public UnmanagedMemory(T value)Parameters
| Type | Name | Description | 
|---|---|---|
| T | value | The value to be placed to the allocated space. | 
Fields
| Edit this page View SourcePointer
Represents the pointer to the allocated memory.
Declaration
public readonly Pointer<T> PointerField Value
| Type | Description | 
|---|---|
| Pointer<T> | 
Methods
| Edit this page View SourceDispose()
Releases the unmanaged memory.
Declaration
public void Dispose()ToString()
Returns the fully qualified type name of this instance.
Declaration
public override readonly string ToString()Returns
| Type | Description | 
|---|---|
| string | The fully qualified type name. |