Thiago Macieira

Results 85 comments of Thiago Macieira

If someone wants to shoot themselves in the foot, who are we to say no? :-)

Hello @x448 we have the code to encode and decode half floats. I just didn't want to add an API that uses that.

Hello Koen I had that exact function in 0.5 but I removed it for further development. I un-reverted it in the dev branch, in edd2b9e1fd2844bac22e1b850ccedee7a15c8905. Please note that I do...

The problem I have to solve is that "pointer to the actual data" may not be a simple thing, especially in constrained devices. Take the example of Zephyr: instead of...

That is true and the API I designed works for when the entire message is available in a contiguous chunk. It's not so good when that isn't the case. I've...

The problem is committing to an API that isn't long-term supportable, especially on small, RTOSes where the buffer may not be a contiguous chunk of memory.

I know. Adding something under conditional compilation is the same as you performing the hack: I won't support you if it breaks later when we have a stable API.

Please open a new request for that, but please explain how `cbor_value_copy_{text,byte}_string` won't work for you.

Somewhat. I did hack around that issue for my own code...

I would prefer multiple PRs if you can. If you need, you can have more than one commit in each PR too.