Package one.nio.mem
Class DirectMemory
java.lang.Object
one.nio.mem.DirectMemory
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final longprivate static final longprivate static final long(package private) static final ByteBuffer -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic longstatic longallocateAndClear(long size, Object holder) static longallocateDirty(long size) static longallocateRaw(long size) static voidclear(long address, long size) static voidclearSmall(long address, int size) static booleanstatic voidstatic voidfreeRaw(long address) static longgetAddress(ByteBuffer buffer) static ByteBufferwrap(long address, int count)
-
Field Details
-
addressOffset
private static final long addressOffset -
capacityOffset
private static final long capacityOffset -
prototype
-
MAX_SETMEMORY_BYTES
private static final long MAX_SETMEMORY_BYTES- See Also:
-
-
Constructor Details
-
DirectMemory
public DirectMemory()
-
-
Method Details
-
allocate
-
allocateAndClear
-
allocateDirty
public static long allocateDirty(long size) -
allocateRaw
public static long allocateRaw(long size) -
freeRaw
public static void freeRaw(long address) -
clear
public static void clear(long address, long size) -
clearSmall
public static void clearSmall(long address, int size) -
getAddress
-
wrap
-
compare
-
copy
-