Interface BytesEncoder<S>

  • Type Parameters:
    S - type of the object to encode
    All Known Implementing Classes:
    SpanBytesEncoder

    public interface BytesEncoder<S>
    Utility for encoding one or more elements of a type into a byte array.
    Since:
    3.0
    • Method Detail

      • sizeInBytes

        int sizeInBytes​(S input)
      • encode

        byte[] encode​(S input)
        Serializes an object into its binary form.