MCPcopy Create free account
hub / github.com/BaseXdb/basex / b2h

Method b2h

basex-core/src/main/java/org/basex/util/Base64.java:148–153  ·  view source on GitHub ↗

Converts a single byte to its hex representation. @param c character to be encoded @return encoded value

(final byte c)

Source from the content-addressed store, hash-verified

146 * @return encoded value
147 */
148 private static int b2h(final byte c) {
149 if(c < 0 || c >= B2H.length) throw error((char) c);
150 final int result = B2H[c];
151 if(result < 0) throw error((char) c);
152 return result;
153 }
154
155 /**
156 * Throws an illegal argument exception for the specified character.

Callers 1

decodeMethod · 0.95

Calls 1

errorMethod · 0.95

Tested by

no test coverage detected