Distributed Provider.Try Allocate<T> Method
Attempts to allocate a block of distributed memory.
Definition
Namespace: Numerics.NET.Distributed
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
C#
true if the allocation was successful; otherwise false.
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
public abstract bool TryAllocate<T>(
int size,
out IntPtr data
)
where T : struct, new()
Parameters
- size Int32
- The number of elements of type T to allocate space for.
- data IntPtr
- On return, a pointer to the newly allocated block.
Type Parameters
- T
- The type of the data.
Return Value
Booleantrue if the allocation was successful; otherwise false.