corda / net.corda.core.serialization / SerializationContext / withPreferredSerializationVersion

withPreferredSerializationVersion

abstract fun withPreferredSerializationVersion(magic: SerializationMagic): SerializationContext

Helper method to return a new context based on this context but with serialization using the format this header sequence represents.