Interface ToBytes<Value>

Type Parameters:
Value - the type of the marshalled values

public interface ToBytes<Value>
A function that marshals values into their byte representation.
  • Method Summary

    Modifier and Type
    Method
    Description
    byte[]
    get(Value value)
    Marshals a value into its byte representation.
  • Method Details

    • get

      byte[] get(Value value) throws IOException
      Marshals a value into its byte representation.
      Parameters:
      value - the value to marshals
      Returns:
      the resulting bytes
      Throws:
      IOException - if marshalling fails