MCPcopy Create free account
hub / github.com/e2wugui/zeze / num2Hex

Method num2Hex

ZezeJava/ZezeJava/src/main/java/Zeze/Util/JsonWriter.java:1222–1224  ·  view source on GitHub ↗
(int n)

Source from the content-addressed store, hash-verified

1220 }
1221
1222 public static int num2Hex(int n) {
1223 return n + '0' + (((9 - n) >> 31) & ('A' - '9' - 1));
1224 }
1225
1226 public void write(final byte[] str, final boolean noQuote) {
1227 write(str, 0, str.length, noQuote);

Callers 5

writeMethod · 0.95
writeLatin1Method · 0.95
write8Method · 0.95
dumpBytesMethod · 0.45
toStrMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected