Package com.io7m.cedarbridge.runtime.api
Interface CBSerializerType<T extends CBSerializableType>
- Type Parameters:
T- The type of serialized values
- All Known Implementing Classes:
CBAbstractSerializer,CBByteArraySerializer,CBFloat16Serializer,CBFloat32Serializer,CBFloat64Serializer,CBIntegerSigned16Serializer,CBIntegerSigned32Serializer,CBIntegerSigned64Serializer,CBIntegerSigned8Serializer,CBIntegerUnsigned16Serializer,CBIntegerUnsigned32Serializer,CBIntegerUnsigned64Serializer,CBIntegerUnsigned8Serializer,CBListSerializer,CBMapEntrySerializer,CBMapSerializer,CBOptionSerializer,CBStringSerializer
A serializer.
-
Method Summary
Modifier and TypeMethodDescriptiondeserialize(CBSerializationContextType context) Deserialize a value of the given type.voidserialize(CBSerializationContextType context, T value) Serialize a value of the given type.
-
Method Details
-
serialize
Serialize a value of the given type.- Parameters:
context- The serialization contextvalue- The value to be serialized- Throws:
IOException- On I/O errors
-
deserialize
Deserialize a value of the given type.- Parameters:
context- The serialization context- Returns:
- A deserialized value
- Throws:
IOException- On I/O errors
-