public class AlignedBuffers extends Object
| Constructor and Description |
|---|
AlignedBuffers() |
| Modifier and Type | Method and Description |
|---|---|
static ByteBuffer |
allocate(int fsBlockSize,
int size)
Allocates align memory for use with O_DIRECT and returns native byte buffer.
|
static void |
free(ByteBuffer buf)
Frees the memory space used by direct buffer, which must have been returned by a previous call
allocate(int, int). |
static void |
free(long addr)
Frees the memory space pointed to by
addr - address of buffer, which must have been returned by a
previous call allocate(int, int). |
public static ByteBuffer allocate(int fsBlockSize, int size)
fsBlockSize - alignment, FS ans OS block size.size - capacity.free(ByteBuffer).public static void free(ByteBuffer buf)
allocate(int, int).buf - direct buffer to free.public static void free(long addr)
addr - address of buffer, which must have been returned by a
previous call allocate(int, int).addr - direct buffer address to free.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 8.9.14-p2 Release Date : January 19 2026