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
It looks that both cbor_decref and cbor_move decrement number of references, however, when refcount reaches zero, cbor_decref will destroy an object. It seems that it is possible to make refcount equal to zero by using cbor_move, so I was wondering how a cbor_item_t with zero reference count could be used apart from moving it's content into cbor map or cbor array?
Thanks!
The text was updated successfully, but these errors were encountered:
Hi, first of all, thanks for this great library.
It looks that both
cbor_decref
andcbor_move
decrement number of references, however, whenrefcount
reaches zero,cbor_decref
will destroy an object. It seems that it is possible to makerefcount
equal to zero by usingcbor_move
, so I was wondering how acbor_item_t
with zero reference count could be used apart from moving it's content into cbor map or cbor array?Thanks!
The text was updated successfully, but these errors were encountered: