MCPcopy Create free account
hub / github.com/Maschell/JNUSTool / ByteArrayToString

Method ByteArrayToString

src/de/mas/jnustool/util/Util.java:26–34  ·  view source on GitHub ↗
(byte[] ba)

Source from the content-addressed store, hash-verified

24 }
25
26 public static String ByteArrayToString(byte[] ba)
27 {
28 if(ba == null) return null;
29 StringBuilder hex = new StringBuilder(ba.length * 2);
30 for(byte b : ba){
31 hex.append(String.format("%02X", b));
32 }
33 return hex.toString();
34 }
35
36 public static int getIntFromBytes(byte[] input,int offset){
37 return ByteBuffer.wrap(Arrays.copyOfRange(input,offset, offset+4)).getInt();

Callers 10

NUSTitleMethod · 0.95
callMethod · 0.95
toStringMethod · 0.95
getH3Method · 0.95
toStringMethod · 0.95
toStringMethod · 0.95
toStringMethod · 0.95
decryptFileChunkHashMethod · 0.95
decryptFileMethod · 0.95

Calls 1

toStringMethod · 0.45

Tested by

no test coverage detected