laurencelundblade / QCBOR

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

Add EndCheck(); change QCBORDecode_Tell() behavior #231

Closed laurencelundblade closed 2 months ago

laurencelundblade commented 2 months ago

QCBORDecode_Tell() returns the offset when at the end of the input rather than UINT32_MAX. This is a non-compatible change, but QCBORDecode_Tell() was very recently introduced and is not present in any official releases.

QCBORDecode_EndCheck() is added to check to see if the cursor is at the end of the input.

Addresses #230