Lines Matching refs:item

26  * @param item[borrow] A float or ctrl item
30 const cbor_item_t *item);
34 * @param item[borrow] A float or ctrl item
38 cbor_float_get_width(const cbor_item_t *item);
42 * The item must have the corresponding width
48 const cbor_item_t *item);
52 * The item must have the corresponding width
58 const cbor_item_t *item);
62 * The item must have the corresponding width
68 const cbor_item_t *item);
78 const cbor_item_t *item);
80 /** Get value from a boolean ctrl item
82 * @param item[borrow] A ctrl item
85 _CBOR_NODISCARD CBOR_EXPORT bool cbor_get_bool(const cbor_item_t *item);
87 /** Constructs a new ctrl item
89 * The width cannot be changed once the item is created
95 /** Constructs a new float item
97 * The width cannot be changed once the item is created
103 /** Constructs a new float item
105 * The width cannot be changed once the item is created
111 /** Constructs a new float item
113 * The width cannot be changed once the item is created
119 /** Constructs new null ctrl item
121 * @return **new** null ctrl item or `NULL` upon memory allocation failure
125 /** Constructs new undef ctrl item
127 * @return **new** undef ctrl item or `NULL` upon memory allocation failure
131 /** Constructs new boolean ctrl item
134 * @return **new** boolean ctrl item or `NULL` upon memory allocation failure
145 * @param item[borrow] A ctrl item
149 CBOR_EXPORT void cbor_set_ctrl(cbor_item_t *item, uint8_t value);
151 /** Assign a boolean value to a boolean ctrl item
153 * @param item[borrow] A ctrl item
156 CBOR_EXPORT void cbor_set_bool(cbor_item_t *item, bool value);
160 * @param item[borrow] A half precision float
163 CBOR_EXPORT void cbor_set_float2(cbor_item_t *item, float value);
167 * @param item[borrow] A single precision float
170 CBOR_EXPORT void cbor_set_float4(cbor_item_t *item, float value);
174 * @param item[borrow] A double precision float
177 CBOR_EXPORT void cbor_set_float8(cbor_item_t *item, double value);
181 * @param item[borrow] A ctrl item
184 _CBOR_NODISCARD CBOR_EXPORT uint8_t cbor_ctrl_value(const cbor_item_t *item);
207 /** Constructs a ctrl item
210 * @return **new** ctrl item or `NULL` upon memory allocation failure