[ILNumerics Core Module]
Namespace: ILNumerics.Core.Arrays
Assembly: ILNumerics.Core (in ILNumerics.Core.dll) Version: 5.5.0.0 (5.5.7503.3146)
Property Value
Type: MemoryHandleException | Condition |
---|---|
InvalidOperationException | if this attribute is called on a return type array. |
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]