ILNumerics Ultimate VS

MutableT1, LocalT, InT, OutT, RetT, StorageTdata Property

ILNumerics Ultimate VS Documentation
ILNumerics - Technical Application Development
[numpy API][Expert API!] Gives a reference to the memory handle used to store elements of this array on the host.

[ILNumerics Core Module]

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

public MemoryHandle data { get; }

Property Value

Type: MemoryHandle
Exceptions

ExceptionCondition
InvalidOperationException if this attribute is called on a return type array.
Remarks

The memory handle returned gives access to the memory used to store the arrays data. In order to read and/or write from / to this memory one must take many considerations into account, including but not limited to: shape,strides,itemsize,BaseOffset, ReferenceCount, ReferenceCount. Failing to do so may result in memory access violations or in corrupted objects.

Handling with memory handles directly is inherently unsafe! Neither the ILNumerics API nor the .NET CLR will prevent you from doing wrong! Therefore, this API is for expert users only. You have been warned and you are on your own!

The handle returned will be a NativeHostHandle for ValueType elements and a ManagedHostHandleT for reference type T1. Latter, in general live on the managed heap while former address unmanaged heap process memory.

[ILNumerics Core Module]

See Also

Reference