Distributed Provider.Try Allocate<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#
true if the allocation was successful; otherwise false.
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
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
Booleantrue if the allocation was successful; otherwise false.