Gets a byte array representation of this instance. Note: No guarantees are made regarding stability of the representation between versions.
()
| 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. |