[quickjs-devel] Re: CBOR implementation

  • From: Saúl Ibarra Corretgé <s@xxxxxxxxxx>
  • To: quickjs-devel@xxxxxxxxxxxxx, Andrew Chambers <andrewrchambers@xxxxxxxxx>
  • Date: Sat, 5 Feb 2022 15:09:32 +0100

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.


Maybe the Duktape implementation could be ported?

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




--
Saúl

Other related posts: