You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-- I am creating a new request as the previous question about 'multiple arrays' was closed.
Thanks for the reply. How about a cbor_encode_merge() function? It is essentially the same thing as you proposed. However this will be more generic. Sort of a strcat function; we can have two arrays managed separately in their own streams and can be merged later.
Let's assume stream 1 is open and stream 2 is closed, I would like to call something like
cbor_encode_merge(stream1, stream2)
which can copy the map from stream2 in to stream1's tail.
The text was updated successfully, but these errors were encountered:
Like I said, this is a good idea. I'll see if I have time to implement this soon.
If not, it shouldn't be too difficult to do it. It's basically a memcpy of one stream's data to another, so we just need to figure out what parameters to add to the function and how to update the fields of the CborEncoder (especially the "added" field).
-- I am creating a new request as the previous question about 'multiple arrays' was closed.
Thanks for the reply. How about a cbor_encode_merge() function? It is essentially the same thing as you proposed. However this will be more generic. Sort of a strcat function; we can have two arrays managed separately in their own streams and can be merged later.
Let's assume stream 1 is open and stream 2 is closed, I would like to call something like
cbor_encode_merge(stream1, stream2)
which can copy the map from stream2 in to stream1's tail.
The text was updated successfully, but these errors were encountered: