mirror of
https://github.com/choltreppe/unibs
synced 2026-01-15 06:51:38 +00:00
No description
| src | ||
| tests | ||
| .gitignore | ||
| LICENSE.txt | ||
| README.md | ||
| unibs.nimble | ||
important: this package is pretty much a worse version of flatty (some parts even copied from there) except the advantage that it works at comp-time, so just cosider it when you need the comptime support.
Unibs
Serialize and deserialize any type to/from binary form.
Works in c, js backend, and in compiletime.
serialize
let serial = serialize([("foo", 4), ("ba", 2)])
deserialize
let data = deserialize(serial, array[2, (string, int)])