ILNumerics - Technical Application Development
System.Object
System.Runtime.ConstrainedExecution.CriticalFinalizerObject
System.Runtime.InteropServices.CriticalHandle
ILNumerics.Core.MemoryLayer.MemoryHandle
ILNumerics.Core.MemoryLayer.ManagedHostHandle<T>
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 ManagedHostHandle<T>.
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.ConstrainedExecution.CriticalFinalizerObject
System.Runtime.InteropServices.CriticalHandle
ILNumerics.Core.MemoryLayer.MemoryHandle
ILNumerics.Core.MemoryLayer.ManagedHostHandle<T>
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 ManagedHostHandle<T> type exposes the following members.
Constructors
Name | Description | |
---|---|---|
![]() | ManagedHostHandle<T>(T[]) |
Create a managed host handle based on an existing managed Array.
[ILNumerics Core Module] |
![]() | ManagedHostHandle<T>(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 MemoryHandle.IsInvalid.)[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 MemoryHandle.Pointer.)[ILNumerics Core Module] |
Methods
Name | Description | |
---|---|---|
![]() | Clear | (Overrides MemoryHandle.Clear().) |
![]() | Clone | (Overrides MemoryHandle.Clone().) |
![]() | CopyTo |
Copy elements.
(Overrides MemoryHandle.CopyTo(UInt32, MemoryHandle, UInt32, UInt64, IntPtr).)[ILNumerics Core Module] |
![]() | GetHashCode | (Inherited from MemoryHandle.) |
![]() | Set | (Overrides MemoryHandle.Set(MemoryHandle, UInt64, UInt64, UInt32).) |
Remarks
[ILNumerics Core Module]
See Also