mirror of
https://github.com/status-im/nim-serialization.git
synced 2026-08-27 11:11:08 +00:00
Version behavior - 0 (original): - Reader/Writer using DefaultFlavor - SerializationFormat is the Flavor parent type - 1: - Reader/Writer using Format as default flavor - Format is the Flavor parent type Version 1 behavior is useful e.g. Format overloaded the `decode` function. Then Flavor can reuse the overloaded function without resort to template workaround. Replacing the DefaultFlavor with the Format itself also prevent sharing ambiguity when DefaultFlavor happen to have the same functions/templates across different Format implementation.