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