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 the byte buffer from position to limit with a byte value
    • fill

      public static void fill(ByteBuffer bb, int start, int finish, byte v)
      Fill the section of the byte buffer from start (inc) to finish (exc) to limit with a byte value
    • 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)
      Test whether two byte buffers have the same byte content
    • copyOf

      public static final ByteBuffer copyOf(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)
      Copy to section bytes from src to dst within the same ByteBuffer.
    • bbcopy

      public static final void bbcopy(ByteBuffer bb1, int src, ByteBuffer bb2, int dst, int length, int slotLen)
      Copy a section of bytes from one ByteBuffer to a different ByteBuffer
    • bbfill

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