Is there an idiomatic way of handling magic struct...
# serialization
z
Is there an idiomatic way of handling magic structs during serialization? I'm thinking like
0xDEADBEEF
at the start of a binary stream. I imagine something magic like this wouldn't vary on a per-instance level, and so wouldn't be part of the Serializable class's public properties. So far I just call a couple
encodeX
methods in a hand-built serializer.