public interface BinaryFormat<V>
| Modifier and Type | Method and Description |
|---|---|
V |
fromByteArray(byte[] bytes)
Creates a value from the given on-the-wire encoded representation.
|
byte[] |
toByteArray(V value)
Serializes the
value into the on-the-wire representation. |
byte[] toByteArray(V value)
value into the on-the-wire representation.value - the value to serialize.value.V fromByteArray(byte[] bytes)
If the value could not be parsed, the underlying implementation will decide to return ether an empty value, an invalid value, or a valid value.
bytes - on-the-wire representation of the value.bytes.