public interface HostMemoryAllocator
Modifier and Type | Method and Description |
---|---|
HostMemoryBuffer |
allocate(long bytes)
Allocate memory, but be sure to close the returned buffer to avoid memory leaks.
|
HostMemoryBuffer |
allocate(long bytes,
boolean preferPinned)
Allocate memory, but be sure to close the returned buffer to avoid memory leaks.
|
HostMemoryBuffer allocate(long bytes, boolean preferPinned)
bytes
- size in bytes to allocatepreferPinned
- If set to true, the pinned memory pool will be used if possible with a
fallback to off-heap memory. If set to false, the allocation will always
be from off-heap memory.HostMemoryBuffer allocate(long bytes)
bytes
- size in bytes to allocateCopyright © 2024. All rights reserved.