MCPcopy Create free account
hub / github.com/BombusMod/BombusMod / getDigestHex

Method getDigestHex

src/main/java/util/StringUtils.java:190–196  ·  view source on GitHub ↗
(byte[] digestBits)

Source from the content-addressed store, hash-verified

188 return out.toString();
189 }
190 public static String getDigestHex(byte[] digestBits) {
191 StringBuffer out = new StringBuffer();
192 for (int i = 0; i < digestBits.length; i++) {
193 out.append(StringUtils.hexByteToString(digestBits[i]));
194 }
195 return out.toString();
196 }
197 // Puts the specified word (val) into the buffer (buf) at position off using big endian byte ordering
198 public static void putWordBE(byte[] buf, int off, int val) {
199 buf[off] = (byte) ((val >> 8) & 0x000000FF);

Callers 4

askInetSrvMethod · 0.95
runMethod · 0.95
jabberIqAuthMethod · 0.95
responseMethod · 0.95

Calls 3

hexByteToStringMethod · 0.95
appendMethod · 0.80
toStringMethod · 0.45

Tested by

no test coverage detected