Zen API
|
kFunction kType_VersionDeserializeFx | ( | kType | type, |
kTypeVersion | version | ||
) |
Gets the deserialization method for the specified type version.
Legacy and modern object deserialization methods have different responsibilities and expected signatures. Legacy object deserialization methods are responsible for performing object initialization (like "Init" methods). Modern object deserialization methods assume that initialization has already been performed via calling the registered framework constructor for the type.
Legacy: kStatus (kCall*)(kObject object, kSerializer serializer, kAlloc allocator)
Modern: kStatus (kCall*)(kObject object, kSerializer serializer)
There are no differences in serialization responsibilities or signatures for legacy vs modern value deserialization methods. This distinction applies only to object deserialization methods.
The kType_VersionHasLegacyDeserializer method can be used to determine whether a type version has a legacy or modern deserialization method.
type | Type. |
version | Type version handle. |