MCPcopy Create free account
hub / github.com/amazon-ion/ion-java / dump

Method dump

src/test/java/com/amazon/ion/BinaryTest.java:90–106  ·  view source on GitHub ↗

Dumps byte arrays to hex strings

(byte[]... packets)

Source from the content-addressed store, hash-verified

88
89 /** Dumps byte arrays to hex strings */
90 private static String dump(byte[]... packets)
91 {
92 StringBuilder builder = new StringBuilder();
93 for (int i = 0; i < packets.length; i++)
94 {
95 byte[] packet = packets[i];
96 builder.append('"');
97 builder.append(bytesToHex(packet));
98 builder.append('"');
99
100 if ((i + 1) < packets.length)
101 {
102 builder.append('\n');
103 }
104 }
105 return builder.toString();
106 }
107
108 private static void assertDoubleBits(IonValue val, long bits)
109 {

Callers 3

testBinWriteFloat01Method · 0.95
testBinWriteFloat02Method · 0.95
testBinWriteFloat03Method · 0.95

Calls 3

bytesToHexMethod · 0.95
toStringMethod · 0.65
appendMethod · 0.45

Tested by

no test coverage detected