Class UnsafeDirectByteBuffer


  • public class UnsafeDirectByteBuffer
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static long addressOffset  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.nio.ByteBuffer alignedSlice​(int capacity, long align, java.nio.ByteBuffer buffy)  
      static java.nio.ByteBuffer allocateAlignedByteBuffer​(int capacity, long align)  
      static long getAddress​(java.nio.ByteBuffer buffy)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • addressOffset

        private static final long addressOffset
    • Constructor Detail

      • UnsafeDirectByteBuffer

        public UnsafeDirectByteBuffer()
    • 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)