DistributedProvider.TryAllocate<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.0
C#
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

Boolean
true if the allocation was successful; otherwise false.

See Also