public final class DirectMemory extends Object
| Constructor and Description |
|---|
DirectMemory() |
| Modifier and Type | Method and Description |
|---|---|
static long |
allocate(long size,
Object holder) |
static long |
allocateAndClear(long size,
Object holder) |
static long |
allocateDirty(long size) |
static long |
allocateRaw(long size) |
static void |
clear(long address,
long size) |
static void |
clearSmall(long address,
int size) |
static boolean |
compare(Object obj1,
long offset1,
Object obj2,
long offset2,
int count) |
static void |
copy(Object from,
long fromOffset,
Object to,
long toOffset,
int count) |
static void |
freeRaw(long address) |
static long |
getAddress(ByteBuffer buffer) |
static ByteBuffer |
wrap(long address,
int count) |
public static long allocate(long size,
Object holder)
public static long allocateAndClear(long size,
Object holder)
public static long allocateDirty(long size)
public static long allocateRaw(long size)
public static void freeRaw(long address)
public static void clear(long address,
long size)
public static void clearSmall(long address,
int size)
public static long getAddress(ByteBuffer buffer)
public static ByteBuffer wrap(long address, int count)
public static boolean compare(Object obj1, long offset1, Object obj2, long offset2, int count)
Copyright © 2019. All rights reserved.