abstract fun <T : Any> serialize(obj: T, context: SerializationSchemeContext): ByteSequence
This method must be able to serialize any object T into a ByteSequence.
obj
- the object to be serialized.
context
- used to pass information about how the object should be serialized.