MCPcopy Index your code
hub / github.com/ccxt/ccxt / toUtf8

Method toUtf8

java/lib/src/main/java/io/github/ccxt/base/Crypto.java:73–73  ·  view source on GitHub ↗
(Object o)

Source from the content-addressed store, hash-verified

71 // ---------- small utils ----------
72 private static String toString(Object o) { return String.valueOf(o); }
73 private static byte[] toUtf8(Object o) { return toString(o).getBytes(StandardCharsets.UTF_8); }
74
75 public static String binaryToHex(byte[] data) {
76 StringBuilder sb = new StringBuilder(data.length * 2);

Callers 14

Base64urlEncodeMethod · 0.95
HmacMethod · 0.95
HashMethod · 0.95
shaDigestMethod · 0.95
md5DigestMethod · 0.95
hmacRawMethod · 0.95
SignKeccakMethod · 0.95
SignHMACSHA256Method · 0.95
SignHMACSHA384Method · 0.95
SignHMACSHA512Method · 0.95
SignHMACMD5Method · 0.95
rsaSignMethod · 0.95

Calls 1

toStringMethod · 0.95

Tested by

no test coverage detected