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

Method toByteArray

output/java_guava/1.4.17/Stats.java:548–552  ·  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

546
547
548 public byte[] toByteArray() {
549 ByteBuffer buff = ByteBuffer.allocate(BYTES).order(ByteOrder.LITTLE_ENDIAN);
550 writeTo(buff);
551 return buff.array();
552 }
553
554 /**
555 * Writes to the given {@link ByteBuffer} a byte representation of this instance.

Callers

nothing calls this directly

Calls 1

writeToMethod · 0.95

Tested by

no test coverage detected