MCPcopy Create free account
hub / github.com/antlr/codebuff / toByteArray

Method toByteArray

output/java_guava/1.4.17/PairedStats.java:300–306  ·  view source on GitHub ↗

Gets a byte array representation of this instance. Note: No guarantees are made regarding stability of the representation between versions.

()

Source from the content-addressed store, hash-verified

298
299
300 public byte[] toByteArray() {
301 ByteBuffer buffer = ByteBuffer.allocate(BYTES).order(ByteOrder.LITTLE_ENDIAN);
302 xStats.writeTo(buffer);
303 yStats.writeTo(buffer);
304 buffer.putDouble(sumOfProductsOfDeltas);
305 return buffer.array();
306 }
307
308 /**
309 * Creates a {@link PairedStats} instance from the given byte representation which was obtained by

Callers

nothing calls this directly

Calls 2

putDoubleMethod · 0.65
writeToMethod · 0.45

Tested by

no test coverage detected