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.7503.3146)

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


order (Optional)
Type: SystemNullableStorageOrders

Return Value

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

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

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