Lines Matching defs:res
119 cbor_item_t *res;
122 res = cbor_build_uint8(cbor_get_uint8(item));
125 res = cbor_build_uint16(cbor_get_uint16(item));
128 res = cbor_build_uint32(cbor_get_uint32(item));
131 res = cbor_build_uint64(cbor_get_uint64(item));
135 if (negative) cbor_mark_negint(res);
137 return res;
166 cbor_item_t *res = cbor_new_indefinite_bytestring();
167 if (res == NULL) {
175 cbor_decref(&res);
178 if (!cbor_bytestring_add_chunk(res, chunk_copy)) {
180 cbor_decref(&res);
185 return res;
192 cbor_item_t *res = cbor_new_indefinite_string();
193 if (res == NULL) {
201 cbor_decref(&res);
204 if (!cbor_string_add_chunk(res, chunk_copy)) {
206 cbor_decref(&res);
211 return res;
214 cbor_item_t *res;
216 res = cbor_new_definite_array(cbor_array_size(item));
218 res = cbor_new_indefinite_array();
220 if (res == NULL) {
227 cbor_decref(&res);
230 if (!cbor_array_push(res, entry_copy)) {
232 cbor_decref(&res);
237 return res;
240 cbor_item_t *res;
242 res = cbor_new_definite_map(cbor_map_size(item));
244 res = cbor_new_indefinite_map();
246 if (res == NULL) {
254 cbor_decref(&res);
259 cbor_decref(&res);
263 if (!cbor_map_add(res, (struct cbor_pair){.key = key_copy,
265 cbor_decref(&res);
273 return res;
299 int res = b;
300 while (--ex > 0) res *= b;
301 return res;