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)
| 547 | * versions. |
| 548 | */ |
| 549 | public static Stats fromByteArray(byte[] byteArray) { |
| 550 | checkNotNull(byteArray); |
| 551 | checkArgument( |
| 552 | byteArray.length == BYTES, |
| 553 | "Expected Stats.BYTES = %s remaining , got %s", |
| 554 | BYTES, |
| 555 | byteArray.length); |
| 556 | return readFrom(ByteBuffer.wrap(byteArray).order(ByteOrder.LITTLE_ENDIAN)); |
| 557 | } |
| 558 | |
| 559 | /** |
| 560 | * Creates a Stats instance from the byte representation read from the given {@link ByteBuffer}. |
nothing calls this directly
no test coverage detected