MCPcopy Create free account
hub / github.com/defold/defold / toHex

Method toHex

engine/dlib/src/test/http_server/TestHttpServer.java:502–509  ·  view source on GitHub ↗
(byte bytes[])

Source from the content-addressed store, hash-verified

500 }
501
502 public static String toHex(byte bytes[]) {
503 StringBuffer sb = new StringBuffer(bytes.length * 2);
504 for (int i = 0; i < bytes.length; i++) {
505 sb.append(convertDigit((int) (bytes[i] >> 4)));
506 sb.append(convertDigit((int) (bytes[i] & 0x0f)));
507 }
508 return (sb.toString());
509 }
510
511 private static String calculateSHA1(File file, List<Range> ranges) throws IOException {
512 try {

Callers 1

calculateSHA1Method · 0.95

Calls 3

convertDigitMethod · 0.95
appendMethod · 0.80
toStringMethod · 0.45

Tested by

no test coverage detected