MCPcopy Index your code
hub / github.com/XanderYe/dnf / byteToHex

Method byteToHex

algorithm/TeaEncrypt.java:36–43  ·  view source on GitHub ↗
(int n)

Source from the content-addressed store, hash-verified

34 }
35
36 private static String byteToHex(int n) {
37 if (n < 0) {
38 n = n + 256;
39 }
40 int d1 = n / 16;
41 int d2 = n % 16;
42 return HEX_ARRAY[d1] + HEX_ARRAY[d2];
43 }
44
45 private static int unpack(String tmp, int start) {
46 char[] arr = tmp.substring(start).toCharArray();

Callers 1

intToStrMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected