Class ByteBufferLib

java.lang.Object
org.apache.jena.atlas.lib.ByteBufferLib

public class ByteBufferLib extends Object
  • Field Details

    • allowArray

      public static boolean allowArray
  • Method Details

    • fill

      public static void fill(ByteBuffer bb, byte v)
    • fill

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

      public static String details(ByteBuffer byteBuffer)
    • print

      public static void print(ByteBuffer byteBuffer)
    • print

      public static void print(PrintStream out, ByteBuffer byteBuffer)
    • sameValue

      public static boolean sameValue(ByteBuffer bb1, ByteBuffer bb2)
    • duplicate

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

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

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

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

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