Feature Request: Add cbor serialized size to determine exact serialized length
Feature Request: Add cbor serialized size to determine exact serialized length: a task in LegoFlow-SWE (Harbor dataset). Currently, there is no way to know how many bytes a cbor item t will require before serializing it. cbor serialize returns 0 when the given buffer is too small, leaving the user…
The task
Currently, there is no way to know how many bytes a `cbor_item_t` will require before serializing it. `cbor_serialize` returns 0 when the given buffer is too small, leaving the user guessing. Using `cbor_serialize_alloc` works but incurs multiple reallocations inside the library. A direct size query would let callers…
Part of Lego-X/LegoFlow-SWE.