Package com.io7m.cedarbridge.runtime.api

# Interface CBProtocolSerializerType<T extends CBProtocolMessageType>

Type Parameters:
  `T` - The type of serialized values

@ProviderType public interface CBProtocolSerializerType<T extends CBProtocolMessageType>
A serializer for protocols.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `T`
  `deserialize(CBSerializationContextType context)`
  Deserialize a value of the given type.
  `void`
  `serialize(CBSerializationContextType context, T value)`
  Serialize a value of the given type.

- ## Method Details

  - ### serialize

    void serialize(CBSerializationContextType context, T value) throws IOException
    Serialize a value of the given type.
    Parameters:
      `context` - The serialization context
      `value` - The value to be serialized
    Throws:
      `IOException` - On I/O errors

  - ### deserialize

    T deserialize(CBSerializationContextType context) throws IOException
    Deserialize a value of the given type.
    Parameters:
      `context` - The serialization context
    Returns:
      A deserialized value
    Throws:
      `IOException` - On I/O errors