public class ByteBufferLib extends Object
Modifier and Type | Field and Description |
---|---|
static boolean |
allowArray |
Modifier and Type | Method and Description |
---|---|
static byte[] |
bb2array(ByteBuffer bb,
int start,
int finish)
Copy from a byte buffer
|
static void |
bbcopy(ByteBuffer bb1,
int src,
ByteBuffer bb2,
int dst,
int length,
int slotLen) |
static void |
bbcopy(ByteBuffer bb,
int src,
int dst,
int length,
int slotLen) |
static void |
bbfill(ByteBuffer bb,
int fromIdx,
int toIdx,
byte fillValue,
int slotLen) |
static ByteBuffer |
duplicate(ByteBuffer bb)
Copy of a ByteBuffer - the contents are copied (unlike ByteBuffer.duplicate)
|
static void |
fill(ByteBuffer bb,
byte v) |
static void |
fill(ByteBuffer bb,
int start,
int finish,
byte v) |
static void |
print(ByteBuffer byteBuffer) |
static void |
print(PrintStream out,
ByteBuffer byteBuffer) |
static boolean |
sameValue(ByteBuffer bb1,
ByteBuffer bb2) |
public static void fill(ByteBuffer bb, byte v)
public static void fill(ByteBuffer bb, int start, int finish, byte v)
public static void print(ByteBuffer byteBuffer)
public static void print(PrintStream out, ByteBuffer byteBuffer)
public static boolean sameValue(ByteBuffer bb1, ByteBuffer bb2)
public static final ByteBuffer duplicate(ByteBuffer bb)
public static final byte[] bb2array(ByteBuffer bb, int start, int finish)
public static final void bbcopy(ByteBuffer bb, int src, int dst, int length, int slotLen)
public static final void bbcopy(ByteBuffer bb1, int src, ByteBuffer bb2, int dst, int length, int slotLen)
public static final void bbfill(ByteBuffer bb, int fromIdx, int toIdx, byte fillValue, int slotLen)
Licenced under the Apache License, Version 2.0