Delegate MemoryAllocator<T>
Represents memory allocator.
Assembly: DotNext.dll
Syntax
public delegate MemoryOwner<T> MemoryAllocator<T>(int length)
Parameters
| Type |
Name |
Description |
| int |
length |
The number of items in the rented memory.
|
Returns
Type Parameters
| Name |
Description |
| T |
The type of the items in the memory pool.
|
Constructors
View Source
MemoryAllocator(object, nint)
Declaration
public MemoryAllocator(object @object, nint method)
Parameters
Methods
View Source
BeginInvoke(int, AsyncCallback, object)
Declaration
public virtual IAsyncResult BeginInvoke(int length, AsyncCallback callback, object @object)
Parameters
Returns
View Source
EndInvoke(IAsyncResult)
Declaration
public virtual MemoryOwner<T> EndInvoke(IAsyncResult result)
Parameters
Returns
View Source
Invoke(int)
Declaration
public virtual MemoryOwner<T> Invoke(int length)
Parameters
| Type |
Name |
Description |
| int |
length |
|
Returns
Extension Methods