Package one.nio.mem
Class DirectMemory
java.lang.Object
one.nio.mem.DirectMemory
-
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)
-
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
-