java.lang.Object
org.apache.jena.atlas.lib.ByteBufferLib
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic final byte[]bb2array(ByteBuffer bb, int start, int finish) Copy from a byte bufferstatic final voidbbcopy(ByteBuffer bb, int src, int dst, int length, int slotLen) Copy to section bytes from src to dst within the sameByteBuffer.static final voidbbcopy(ByteBuffer bb1, int src, ByteBuffer bb2, int dst, int length, int slotLen) Copy a section of bytes from oneByteBufferto a differentByteBufferstatic final voidbbfill(ByteBuffer bb, int fromIdx, int toIdx, byte fillValue, int slotLen) static final ByteBuffercopyOf(ByteBuffer bb) Copy of a ByteBuffer - the contents are copied (unlikeByteBuffer.duplicate())static Stringdetails(ByteBuffer byteBuffer) static voidfill(ByteBuffer bb, byte v) Fill the byte buffer from position to limit with a byte valuestatic voidfill(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 valuestatic voidprint(PrintStream out, ByteBuffer byteBuffer) static voidprint(ByteBuffer byteBuffer) static booleansameValue(ByteBuffer bb1, ByteBuffer bb2) Test whether two byte buffers have the same byte content
-
Field Details
-
allowArray
public static boolean allowArray
-
-
Method Details
-
fill
Fill the byte buffer from position to limit with a byte value -
fill
Fill the section of the byte buffer from start (inc) to finish (exc) to limit with a byte value -
details
-
print
-
print
-
sameValue
Test whether two byte buffers have the same byte content -
copyOf
Copy of a ByteBuffer - the contents are copied (unlikeByteBuffer.duplicate()) -
bb2array
Copy from a byte buffer -
bbcopy
Copy to section bytes from src to dst within the sameByteBuffer. -
bbcopy
public static final void bbcopy(ByteBuffer bb1, int src, ByteBuffer bb2, int dst, int length, int slotLen) Copy a section of bytes from oneByteBufferto a differentByteBuffer -
bbfill
-