TheNitesWhoSay / RareCpp

Creating a simpler, more intuitive means of C++ reflection
MIT License
124 stars 6 forks source link

RareBinary #92

Open TheNitesWhoSay opened 2 years ago

TheNitesWhoSay commented 2 years ago

Add a module for binary serialization & deserialization, default behavior for structs should be to read/write the fields of the structure without padding/alignment and with binary field widths the same as the field sizeof's.

Need further exploration on what annotations are needed, but at the least annotations should be usable to change the width of a field's binary representation or ignore a field. Further annotations might include changing the representation of strings, altering the behavior of pointers/references, etc.