Class ByteBufferLib


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

      Fields 
      Modifier and Type Field Description
      static boolean allowArray  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static byte[] bb2array​(java.nio.ByteBuffer bb, int start, int finish)
      Copy from a byte buffer
      static void bbcopy​(java.nio.ByteBuffer bb, int src, int dst, int length, int slotLen)  
      static void bbcopy​(java.nio.ByteBuffer bb1, int src, java.nio.ByteBuffer bb2, int dst, int length, int slotLen)  
      static void bbfill​(java.nio.ByteBuffer bb, int fromIdx, int toIdx, byte fillValue, int slotLen)  
      static java.lang.String details​(java.nio.ByteBuffer byteBuffer)  
      static java.nio.ByteBuffer duplicate​(java.nio.ByteBuffer bb)
      Copy of a ByteBuffer - the contents are copied (unlike ByteBuffer.duplicate)
      static void fill​(java.nio.ByteBuffer bb, byte v)  
      static void fill​(java.nio.ByteBuffer bb, int start, int finish, byte v)  
      static void print​(java.io.PrintStream out, java.nio.ByteBuffer byteBuffer)  
      static void print​(java.nio.ByteBuffer byteBuffer)  
      static boolean sameValue​(java.nio.ByteBuffer bb1, java.nio.ByteBuffer bb2)  
      • Methods inherited from class java.lang.Object

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

      • allowArray

        public static boolean allowArray
    • Method Detail

      • fill

        public static void fill​(java.nio.ByteBuffer bb,
                                byte v)
      • fill

        public static void fill​(java.nio.ByteBuffer bb,
                                int start,
                                int finish,
                                byte v)
      • details

        public static java.lang.String details​(java.nio.ByteBuffer byteBuffer)
      • print

        public static void print​(java.nio.ByteBuffer byteBuffer)
      • print

        public static void print​(java.io.PrintStream out,
                                 java.nio.ByteBuffer byteBuffer)
      • sameValue

        public static boolean sameValue​(java.nio.ByteBuffer bb1,
                                        java.nio.ByteBuffer bb2)
      • duplicate

        public static final java.nio.ByteBuffer duplicate​(java.nio.ByteBuffer bb)
        Copy of a ByteBuffer - the contents are copied (unlike ByteBuffer.duplicate)
      • bb2array

        public static final byte[] bb2array​(java.nio.ByteBuffer bb,
                                            int start,
                                            int finish)
        Copy from a byte buffer
      • bbcopy

        public static final void bbcopy​(java.nio.ByteBuffer bb,
                                        int src,
                                        int dst,
                                        int length,
                                        int slotLen)
      • bbcopy

        public static final void bbcopy​(java.nio.ByteBuffer bb1,
                                        int src,
                                        java.nio.ByteBuffer bb2,
                                        int dst,
                                        int length,
                                        int slotLen)
      • bbfill

        public static final void bbfill​(java.nio.ByteBuffer bb,
                                        int fromIdx,
                                        int toIdx,
                                        byte fillValue,
                                        int slotLen)