Lines Matching refs:item
20 * @param item[borrow] An array
24 CBOR_EXPORT size_t cbor_array_size(const cbor_item_t* item);
28 * @param item[borrow] An array
32 CBOR_EXPORT size_t cbor_array_allocated(const cbor_item_t* item);
34 /** Get item by index
36 * @param item[borrow] An array
38 * @return **incref** The item, or `NULL` in case of boundary violation
41 CBOR_EXPORT cbor_item_t* cbor_array_get(const cbor_item_t* item, size_t index);
43 /** Set item by index
48 * @param item[borrow] An array
49 * @param value[incref] The item to assign
50 * @param index The index, first item is 0.
54 CBOR_EXPORT bool cbor_array_set(cbor_item_t* item, size_t index,
57 /** Replace item at an index
59 * The item being replace will be #cbor_decref 'ed.
61 * @param item[borrow] An array
62 * @param value[incref] The item to assign
63 * @param index The index, first item is 0.
67 CBOR_EXPORT bool cbor_array_replace(cbor_item_t* item, size_t index,
72 * @param item[borrow] An array
76 CBOR_EXPORT bool cbor_array_is_definite(const cbor_item_t* item);
80 * @param item[borrow] An array
84 CBOR_EXPORT bool cbor_array_is_indefinite(const cbor_item_t* item);
91 * @param item[borrow] An array
95 CBOR_EXPORT cbor_item_t** cbor_array_handle(const cbor_item_t* item);
118 * @param pushee[incref] The item to push