Package org.jctools.util
Class UnsafeDirectByteBuffer
- java.lang.Object
-
- org.jctools.util.UnsafeDirectByteBuffer
-
public class UnsafeDirectByteBuffer extends Object
-
-
Constructor Summary
Constructors Constructor Description UnsafeDirectByteBuffer()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ByteBufferalignedSlice(int capacity, long align, ByteBuffer buffy)static ByteBufferallocateAlignedByteBuffer(int capacity, long align)static longgetAddress(ByteBuffer buffy)
-
-
-
Method Detail
-
getAddress
public static long getAddress(ByteBuffer buffy)
-
allocateAlignedByteBuffer
public static ByteBuffer allocateAlignedByteBuffer(int capacity, long align)
-
alignedSlice
public static ByteBuffer alignedSlice(int capacity, long align, ByteBuffer buffy)
-
-