Lines Matching full:item
151 /** Get the type of the item
153 * @param item
158 const cbor_item_t *item); /* Will be inlined iff link-time opt is enabled */
160 /* Standard CBOR Major item types */
162 /** Does the item have the appropriate major type?
163 * @param item the item
164 * @return Is the item an #CBOR_TYPE_UINT?
167 CBOR_EXPORT bool cbor_isa_uint(const cbor_item_t *item);
169 /** Does the item have the appropriate major type?
170 * @param item the item
171 * @return Is the item a #CBOR_TYPE_NEGINT?
174 CBOR_EXPORT bool cbor_isa_negint(const cbor_item_t *item);
176 /** Does the item have the appropriate major type?
177 * @param item the item
178 * @return Is the item a #CBOR_TYPE_BYTESTRING?
181 CBOR_EXPORT bool cbor_isa_bytestring(const cbor_item_t *item);
183 /** Does the item have the appropriate major type?
184 * @param item the item
185 * @return Is the item a #CBOR_TYPE_STRING?
188 CBOR_EXPORT bool cbor_isa_string(const cbor_item_t *item);
190 /** Does the item have the appropriate major type?
191 * @param item the item
192 * @return Is the item an #CBOR_TYPE_ARRAY?
195 CBOR_EXPORT bool cbor_isa_array(const cbor_item_t *item);
197 /** Does the item have the appropriate major type?
198 * @param item the item
199 * @return Is the item a #CBOR_TYPE_MAP?
202 CBOR_EXPORT bool cbor_isa_map(const cbor_item_t *item);
204 /** Does the item have the appropriate major type?
205 * @param item the item
206 * @return Is the item a #CBOR_TYPE_TAG?
209 CBOR_EXPORT bool cbor_isa_tag(const cbor_item_t *item);
211 /** Does the item have the appropriate major type?
212 * @param item the item
213 * @return Is the item a #CBOR_TYPE_FLOAT_CTRL?
216 CBOR_EXPORT bool cbor_isa_float_ctrl(const cbor_item_t *item);
220 /** Is the item an integer, either positive or negative?
221 * @param item the item
222 * @return Is the item an integer, either positive or negative?
225 CBOR_EXPORT bool cbor_is_int(const cbor_item_t *item);
227 /** Is the item an a floating point number?
228 * @param item the item
229 * @return Is the item a floating point number?
232 CBOR_EXPORT bool cbor_is_float(const cbor_item_t *item);
234 /** Is the item an a boolean?
235 * @param item the item
236 * @return Is the item a boolean?
239 CBOR_EXPORT bool cbor_is_bool(const cbor_item_t *item);
241 /** Does this item represent `null`
248 * @param item the item
249 * @return Is the item (CBOR logical) null?
252 CBOR_EXPORT bool cbor_is_null(const cbor_item_t *item);
254 /** Does this item represent `undefined`
261 * @param item the item
262 * @return Is the item (CBOR logical) undefined?
265 CBOR_EXPORT bool cbor_is_undef(const cbor_item_t *item);
273 /** Increases the item's reference count by one
280 * @param item Reference to an item
281 * @return The input \p item
283 CBOR_EXPORT cbor_item_t *cbor_incref(cbor_item_t *item);
285 /** Decreases the item's reference count by one, deallocating the item if needed
287 * In case the item is deallocated, the reference count of all items this item
290 * @param item Reference to an item. Will be set to `NULL` if deallocated
292 CBOR_EXPORT void cbor_decref(cbor_item_t **item);
294 /** Decreases the item's reference count by one, deallocating the item if needed
299 * @param item Reference to an item
301 CBOR_EXPORT void cbor_intermediate_decref(cbor_item_t *item);
303 /** Get the item's reference count
311 * @param item the item
315 CBOR_EXPORT size_t cbor_refcount(const cbor_item_t *item);
319 * Decreases the reference count by one, but does not deallocate the item even
325 * .. warning:: If the item is moved without correctly increasing the reference
329 * @param item Reference to an item
330 * @return the item with reference count decreased by one
333 CBOR_EXPORT cbor_item_t *cbor_move(cbor_item_t *item);