MCPcopy Index your code
hub / github.com/antlr/codebuff / fromByteArray

Method fromByteArray

output/java_guava/1.4.18/Stats.java:583–590  ·  view source on GitHub ↗

Creates a Stats instance from the given byte representation which was obtained by #toByteArray. Note: No guarantees are made regarding stability of the representation between versions.

(byte[] byteArray)

Source from the content-addressed store, hash-verified

581
582
583 public static Stats fromByteArray(byte[] byteArray) {
584 checkNotNull(byteArray);
585 checkArgument(byteArray.length == BYTES,
586 "Expected Stats.BYTES = %s remaining , got %s",
587 BYTES,
588 byteArray.length);
589 return readFrom(ByteBuffer.wrap(byteArray).order(ByteOrder.LITTLE_ENDIAN));
590 }
591
592 /**
593 * Creates a Stats instance from the byte representation read from the given {@link ByteBuffer}.

Callers

nothing calls this directly

Calls 4

readFromMethod · 0.95
checkNotNullMethod · 0.45
checkArgumentMethod · 0.45
wrapMethod · 0.45

Tested by

no test coverage detected