On 05/02/2022 13:27, Andrew Chambers wrote:
If I were to do it I'd use tinycbor or a similar library and take some inspiration from the JSON parse/stringify implementation in QuickJs to write encode and decode.
On Sat, 5 Feb 2022, 11:14 Charlie Gordon, <quickjs@xxxxxxxxxxx <mailto:quickjs@xxxxxxxxxxx>> wrote:
This is a good idea. Do you mean to write a native implementation in
C for use in QuickJS ?
Chqrlie
> On 5 Feb 2022, at 09:45, Andrew Chambers
<andrewrchambers@xxxxxxxxx <mailto:andrewrchambers@xxxxxxxxx>> wrote:
>
> Before I write my own, is anyone aware of any CBOR encode/decode
implementation using QuickJs? I've had a good search on GitHub but
not come up with anything.
>
> Many thanks,
> Andrew