DistributedProvider.TryAllocate<T> Method

Attempts to allocate a block of distributed memory.

Definition

Namespace: Extreme.Mathematics.Distributed
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
public abstract bool TryAllocate<T>(
	int size,
	out IntPtr data
)

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