billvaglienti / ProtoGen

Communications protocol generation software
MIT License
30 stars 16 forks source link

Multiple encodings for the same data #41

Closed billvaglienti closed 7 years ago

billvaglienti commented 7 years ago

It would be nice to be able to define multiple encodings for the same in-memory data. An example would be a high resolution versus a low resolution packet that transmitted the same data. In that case only one structure definition is wanted but two distinct packet IDs, and encode/decode functions.

billvaglienti commented 7 years ago

Done, see the "redefine" attribute in version 2.7