MCPcopy Create free account
hub / github.com/apache/kudu / hex

Method hex

java/kudu-client/src/main/java/org/apache/kudu/client/Bytes.java:996–1002  ·  view source on GitHub ↗

Convert a byte array to a hex encoded string. @param bytes the bytes to encode @return the hex encoded bytes

(byte[] bytes)

Source from the content-addressed store, hash-verified

994 * @return the hex encoded bytes
995 */
996 public static String hex(byte[] bytes) {
997 StringBuilder sb = new StringBuilder(2 + bytes.length * 2);
998 sb.append('0');
999 sb.append('x');
1000 sb.append(BaseEncoding.base16().encode(bytes));
1001 return sb.toString();
1002 }
1003
1004 // ---------------------- //
1005 // Comparing byte arrays. //

Callers 9

runServerStepMethod · 0.95
testHexMethod · 0.95
toStringMethod · 0.95
toStringMethod · 0.95
toStringMethod · 0.95
valueToStringMethod · 0.95
toStringMethod · 0.95
toStringMethod · 0.95
getMessageMethod · 0.95

Calls 3

encodeMethod · 0.80
appendMethod · 0.45
toStringMethod · 0.45

Tested by 2

runServerStepMethod · 0.76
testHexMethod · 0.76