Delegate MemoryAllocator<T>
Represents memory allocator.
Namespace: DotNext.Buffers
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 | Description |
---|---|
MemoryOwner<T> | The rented memory. |
Type Parameters
Name | Description |
---|---|
T | The type of the items in the memory pool. |