ILNumerics - Technical Application Development
SystemObject
System.Runtime.ConstrainedExecutionCriticalFinalizerObject
System.Runtime.InteropServicesCriticalHandle
ILNumerics.Core.MemoryLayerMemoryHandle
ILNumerics.Core.MemoryLayerManagedHostHandleT
Assembly: ILNumerics.Core (in ILNumerics.Core.dll) Version: 5.5.0.0 (5.5.7503.3146)
Top
Top
Top
Since most computational arrays in ILNumerics host struct (value type) elements, managed heap memory is rarely used.
One important example is are cell arrays, which hold reference types as elements. These element arrays are
allocated on the managed heap by use of ManagedHostHandleT.
A handle for managed reference type arrays. This class enables one to handle /store managed arrays with the same API as unmanaged memory.
[ILNumerics Core Module]
Inheritance Hierarchy
System.Runtime.ConstrainedExecutionCriticalFinalizerObject
System.Runtime.InteropServicesCriticalHandle
ILNumerics.Core.MemoryLayerMemoryHandle
ILNumerics.Core.MemoryLayerManagedHostHandleT
Namespace: ILNumerics.Core.MemoryLayer
Assembly: ILNumerics.Core (in ILNumerics.Core.dll) Version: 5.5.0.0 (5.5.7503.3146)
Syntax
Type Parameters
- T
- The type of references hold in the internal HostArray.
The ManagedHostHandleT type exposes the following members.
Constructors
Name | Description | |
---|---|---|
ManagedHostHandleT(T) |
Create a managed host handle based on an existing managed Array.
[ILNumerics Core Module] | |
ManagedHostHandleT(UIntPtr, Boolean) |
Create a new managed memory handle on the host, capable of storing length of type T.
[ILNumerics Core Module] |
Properties
Name | Description | |
---|---|---|
IsInvalid |
Determine if this handle is a valid handle. Returns false, preventing from finalization.
(Overrides MemoryHandleIsInvalid.)[ILNumerics Core Module] | |
Length |
Number of bytes referenced by this handle.
(Inherited from MemoryHandle.)[ILNumerics Core Module] | |
Pointer |
Acquire a pointer to the first element of the HostArray.
(Overrides MemoryHandlePointer.)[ILNumerics Core Module] |
Methods
Name | Description | |
---|---|---|
Clear | (Overrides MemoryHandleClear.) | |
Clone | (Overrides MemoryHandleClone.) | |
CopyTo |
Copy elements.
(Overrides MemoryHandleCopyTo(UInt32, MemoryHandle, UInt32, UInt64, IntPtr).)[ILNumerics Core Module] | |
GetHashCode | (Inherited from MemoryHandle.) | |
Set | (Overrides MemoryHandleSet(MemoryHandle, UInt64, UInt64, UInt32).) |
Remarks
[ILNumerics Core Module]
See Also