bergzand / NanoCBOR

CBOR library aimed at heavily constrained devices
Creative Commons Zero v1.0 Universal
47 stars 23 forks source link

Encoder: allow emitting simple values #88

Open mguetschow opened 8 months ago

mguetschow commented 8 months ago

This is a low-level API matching nanocbor_get_simple() and allowing oblivious packed CBOR support.

mguetschow commented 7 months ago

I've just adjusted the docs to mention the range of disallowed values for nanocbor_fmt_simple and added an automated test in the second commit.

mguetschow commented 3 weeks ago

I've now added a commit allowing to emit undefined as well. If wanted, that could be split up into its own PR.