Package org.apache.jena.atlas.lib
Class ByteBufferLib
- java.lang.Object
-
- org.apache.jena.atlas.lib.ByteBufferLib
-
public class ByteBufferLib extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static booleanallowArray
-
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 bufferstatic voidbbcopy(java.nio.ByteBuffer bb, int src, int dst, int length, int slotLen)static voidbbcopy(java.nio.ByteBuffer bb1, int src, java.nio.ByteBuffer bb2, int dst, int length, int slotLen)static voidbbfill(java.nio.ByteBuffer bb, int fromIdx, int toIdx, byte fillValue, int slotLen)static java.lang.Stringdetails(java.nio.ByteBuffer byteBuffer)static java.nio.ByteBufferduplicate(java.nio.ByteBuffer bb)Copy of a ByteBuffer - the contents are copied (unlike ByteBuffer.duplicate)static voidfill(java.nio.ByteBuffer bb, byte v)static voidfill(java.nio.ByteBuffer bb, int start, int finish, byte v)static voidprint(java.io.PrintStream out, java.nio.ByteBuffer byteBuffer)static voidprint(java.nio.ByteBuffer byteBuffer)static booleansameValue(java.nio.ByteBuffer bb1, java.nio.ByteBuffer bb2)
-
-
-
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)
-
-