ILNumerics Ultimate VS

ManagedHostHandleT Constructor (UIntPtr, Boolean)

ILNumerics Ultimate VS Documentation
ILNumerics - Technical Application Development
Create a new managed memory handle on the host, capable of storing length of type T.

[ILNumerics Core Module]

Namespace:  ILNumerics.Core.MemoryLayer
Assembly:  ILNumerics.Core (in ILNumerics.Core.dll) Version: 5.5.0.0 (5.5.7503.3146)
Syntax

public ManagedHostHandle(
	UIntPtr length,
	bool clear = false
)

Parameters

length
Type: SystemUIntPtr
The number of elements (not bytes) of the new managed array.
clear (Optional)
Type: SystemBoolean
[Optional] This parameter is ignored.
Remarks

The clear parameter has no effect. The new handle will be acquired by creating a new array of T from the managed heap. The CLR will ensure that its elements are cleared.

The new handle returned will host length elements. However, the Length property of the new handle will reflect the number of bytes consumed by the array to store these elements.

[ILNumerics Core Module]

See Also

Reference