abstract fun <T : Any> deserializeWithCompatibleContext(byteSequence: ByteSequence, clazz: Class<T>, context: SerializationContext): ObjectWithCompatibleContext<T>
Deserialize the bytes in to an object, using the prefixed bytes to determine the format.
byteSequence
- The bytes to deserialize, including a format header prefix.
clazz
- The class or superclass or the object to be deserialized, or Any or Object if unknown.
context
- A context that configures various parameters to deserialization.
Return
deserialized object along with SerializationContext to identify encoding used.