public class BdbUtil
extends java.lang.Object
Constructor and Description |
---|
BdbUtil() |
Modifier and Type | Method and Description |
---|---|
static byte[] |
concatBytes(byte[] a,
byte[] b) |
static byte[] |
concatBytes(byte[] a,
byte[] b,
byte[] c) |
static byte[] |
concatBytes(byte[] a,
byte[] b,
byte[] c,
byte[] d) |
static byte[] |
concatBytes(byte[] a,
byte[] b,
byte[] c,
byte[] d,
byte[] e) |
static byte[] |
concatBytes(byte[] a,
byte[] b,
byte[] c,
byte[] d,
byte[] e,
byte[] f) |
static java.lang.String |
decode(byte[] bytes) |
static byte[] |
encode(java.lang.String hello) |
static byte[] |
encodeAsPascalString(java.lang.String hello) |
static int |
fromByteArray(byte[] bytes) |
static byte[] |
getSubArray(byte[] a,
int beginIndex,
int endIndex)
Returns a new byte[] that is a subarray of a.
|
static int |
indexOf(byte[] keyBytes,
byte target) |
static boolean |
startsWith(byte[] bytes,
byte[] prefix) |
static byte[] |
toByteArray(int data) |
public static byte[] concatBytes(byte[] a, byte[] b)
public static byte[] concatBytes(byte[] a, byte[] b, byte[] c)
public static byte[] concatBytes(byte[] a, byte[] b, byte[] c, byte[] d)
public static byte[] concatBytes(byte[] a, byte[] b, byte[] c, byte[] d, byte[] e)
public static byte[] concatBytes(byte[] a, byte[] b, byte[] c, byte[] d, byte[] e, byte[] f)
public static byte[] getSubArray(byte[] a, int beginIndex, int endIndex)
public static int indexOf(byte[] keyBytes, byte target)
public static boolean startsWith(byte[] bytes, byte[] prefix)
public static byte[] encode(java.lang.String hello)
public static byte[] encodeAsPascalString(java.lang.String hello)
public static java.lang.String decode(byte[] bytes)
public static byte[] toByteArray(int data)
public static int fromByteArray(byte[] bytes)