laurencelundblade / QCBOR

Comprehensive, powerful, commercial-quality CBOR encoder/ decoder that is still suited for small devices.
Other
181 stars 47 forks source link

Provide access to underlying encoded buffers #248

Open BrianSipos opened 1 month ago

BrianSipos commented 1 month ago

I have a need to access the original buffer from an associated QCBOREncodeContext and QCBORDecodeContext and would prefer to not need to pass around the context and its associated buffer. Instead it would be convenient to be able to access the buffer from an active context. I am currently using the 'private' fields of the context to get the buffer but would rather use a public, stable, and documented function to get access.

laurencelundblade commented 1 month ago

Makes sense given some of the other things you've asked for.