List of utility methods to do Byte Array Decode
String | decodeToString(byte[] arr) decode To String try { return new String(decode(arr), ENCODING); } catch (UnsupportedEncodingException ignore) { return null; |
int | decodeUnsignedVarInt(byte[] b, int offset) Decodes an integer as encoded by encodeUnsignedVarInt. int v = b[offset]; if (v >= 0) { return v; switch ((v >> 4) & 0x07) { case 0x00: case 0x01: case 0x02: ... |