corda / net.corda.core.serialization / CustomSerializationScheme / serialize

serialize

abstract fun <T : Any> serialize(obj: T, context: SerializationSchemeContext): ByteSequence

This method must be able to serialize any object T into a ByteSequence.

Parameters

obj - the object to be serialized.

context - used to pass information about how the object should be serialized.