ILNumerics Ultimate VS

ConcreteRetArrayT1, LocalT, InT, OutT, RetT, StorageTGetHostPointerForRead Method

ILNumerics Ultimate VS Documentation
ILNumerics - Technical Application Development
[Invalid] This method cannot be used on return type arrays! Create a local array instead! Acquire the pointer elements from the local array then.

[ILNumerics Core Module]

Namespace:  ILNumerics.Core.Arrays
Assembly:  ILNumerics.Core (in ILNumerics.Core.dll) Version: 5.5.0.0 (5.5.7514.3148)
Syntax

public override IntPtr GetHostPointerForRead(
	Nullable<StorageOrders> order = null
)

Parameters

order (Optional)
Type: SystemNullableStorageOrders

Return Value

Type: IntPtr
This function always throws an exception when called on return type array.
Exceptions

ExceptionCondition
InvalidOperationException is always thrown when this function is called on a return type array (RetArray{T} & Co).
Remarks

This function is defined on return type arrays. Its sole purpose is to invalidate the corresponding function of the base class ConcreteArrayT1, LocalT, InT, OutT, RetT, StorageT. Since return type arrays are released after the first use, returning a pointer to its elements as this only 'use' would immediately render the pointer invalid. Hence, this function will throw an exception when called on return type arrays.

Consider assigning the return type array to a local array ArrayT (Logical) and call this function on the local array instead.

[ILNumerics Core Module]

See Also

Reference