No description
Find a file
2023-05-26 17:45:37 +02:00
src fix variant type bug (with drawbacks) 2023-05-26 17:45:37 +02:00
tests fix variant type bug (with drawbacks) 2023-05-26 17:45:37 +02:00
.gitignore init 2023-03-03 16:18:29 +01:00
LICENSE.txt add README and LICENSE 2023-03-05 23:38:06 +01:00
README.md fix variant type bug (with drawbacks) 2023-05-26 17:45:37 +02:00
unibs.nimble fix variant type bug (with drawbacks) 2023-05-26 17:45:37 +02:00

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)])