Zen API
|
kBool kSerializer_IsMemoryCompatible | ( | kSerializer | serializer, |
kType | type | ||
) |
Determines whether a value type is memory-compatible with the serializer.
A value type is memory compatible if host endianness matches the endianess of the serializer and the value type contains only tightly-packed primitive fields (no structure padding). If these conditions are met, then it is valid to directly de/serialize an instance of the value type as an array of bytes. This can be useful, in some cases, for optimization.
serializer | Serializer object. |
type | Type instance. |