Searched refs:valueBuf (Results 1 – 2 of 2) sorted by relevance
308 public static int byteArrayToInt(byte[] valueBuf) { in byteArrayToInt() argument309 return byteArrayToInt(valueBuf, 0); in byteArrayToInt()312 public static short byteArrayToShort(byte[] valueBuf) { in byteArrayToShort() argument313 ByteBuffer converter = ByteBuffer.wrap(valueBuf); in byteArrayToShort()318 public static int byteArrayToInt(byte[] valueBuf, int offset) { in byteArrayToInt() argument319 ByteBuffer converter = ByteBuffer.wrap(valueBuf); in byteArrayToInt()324 public static String byteArrayToString(byte[] valueBuf) { in byteArrayToString() argument326 for (int idx = 0; idx < valueBuf.length; idx++) { in byteArrayToString()330 sb.append(String.format("%02x", valueBuf[idx])); in byteArrayToString()341 public static String byteArrayToUtf8String(byte[] valueBuf) { in byteArrayToUtf8String() argument[all …]
59 byte[] valueBuf = new byte[] {0x01, 0x02}; in byteArrayToShort()60 short s = Utils.byteArrayToShort(valueBuf); in byteArrayToShort()66 byte[] valueBuf = new byte[] {0x01, 0x02}; in byteArrayToString()67 String str = Utils.byteArrayToString(valueBuf); in byteArrayToString()