[ILNumerics Core Module]
System.Runtime.ConstrainedExecutionCriticalFinalizerObject
System.Runtime.InteropServicesCriticalHandle
ILNumerics.Core.MemoryLayerMemoryHandle
ILNumerics.Core.MemoryLayerNativeHostHandle
Namespace: ILNumerics.Core.MemoryLayer
Assembly: ILNumerics.Core (in ILNumerics.Core.dll) Version: 5.5.0.0 (5.5.7503.3146)
The NativeHostHandle type exposes the following members.
Name | Description | |
---|---|---|
NativeHostHandle |
Create a new host memory handle. This will be used by P/Invoke methods having NativeHostHandle as return type.
[ILNumerics Core Module] |
Name | Description | |
---|---|---|
Handle |
The address originally provided by the OS in result of the memory allocation request. This address is not aligned and must be kept unchanged for freeing the handle later.
[ILNumerics Core Module] | |
IsInvalid |
Determine if this handle is a valid handle.
(Inherited from MemoryHandle.)[ILNumerics Core Module] | |
Length |
Number of bytes referenced by this handle.
(Inherited from MemoryHandle.)[ILNumerics Core Module] | |
Pointer |
Address of the payload memory region for this handle. This respects alignment requirements and is different to Handle which points to the beginning of the memory region originally allocated from the OS.
(Overrides MemoryHandlePointer.)[ILNumerics Core Module] |
Name | Description | |
---|---|---|
Clear | (Overrides MemoryHandleClear.) | |
Clone | (Overrides MemoryHandleClone.) | |
CopyTo |
Copy memory.
(Inherited from MemoryHandle.)[ILNumerics Core Module] | |
GetHashCode | (Inherited from MemoryHandle.) | |
Set | (Inherited from MemoryHandle.) |
In case of NativeHostPoolPointer will present the lowest address within the allocated memory region which fulfills the alignment and length requirements of Intel's OpenCL buffer sharing (CPU / Integrated GPU). See: MEMORY_ALIGNMENT_BYTES which determines the needed alignment (4K). The length of the buffer
Note, that alignment for NativeHostHandle is only guaranteed for handles pointing to memory regions larger than MEMORY_ALIGNMENT_BYTES.
[ILNumerics Core Module]