public final class DataUtils extends Object
Constructor and Description |
---|
DataUtils() |
Modifier and Type | Method and Description |
---|---|
static Buffer |
align(Buffer bb) |
static int |
aligned(int n) |
static ByteBuffer |
alloc(ByteBuffer bb,
int len) |
static ByteBuffer |
expand(ByteBuffer bb,
int len) |
static int |
getInt3(ByteBuffer bb) |
static int |
getInt3(ByteBuffer bb,
int n) |
static byte[] |
longToByteArray(Long value)
|
static ByteBuffer |
pad(ByteBuffer bb) |
static ByteBuffer |
putInt3(ByteBuffer bb,
int n) |
static ByteBuffer |
putInt3(ByteBuffer bb,
int i,
int n) |
public static ByteBuffer alloc(ByteBuffer bb, int len)
public static ByteBuffer expand(ByteBuffer bb, int len)
public static ByteBuffer pad(ByteBuffer bb)
public static int aligned(int n)
public static ByteBuffer putInt3(ByteBuffer bb, int n)
public static ByteBuffer putInt3(ByteBuffer bb, int i, int n)
public static int getInt3(ByteBuffer bb)
public static int getInt3(ByteBuffer bb, int n)
public static byte[] longToByteArray(Long value)
value
- long value