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

Method leftPadHex

java/lib/src/main/java/io/github/ccxt/base/Crypto.java:536–542  ·  view source on GitHub ↗
(String s, int len)

Source from the content-addressed store, hash-verified

534 }
535
536 private static String leftPadHex(String s, int len) {
537 if (s.length() >= len) return s;
538 StringBuilder sb = new StringBuilder(len);
539 for (int i = s.length(); i < len; i++) sb.append('0');
540 sb.append(s);
541 return sb.toString();
542 }
543
544 private static byte[] hexToBytes(String hex) {
545 // return Hex.decode(hex.replaceFirst("^0x", ""));

Callers

nothing calls this directly

Calls 3

lengthMethod · 0.45
appendMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected