Home
last modified time | relevance | path

Searched refs:cbor_pair (Results 1 – 19 of 19) sorted by relevance

/freebsd/contrib/libcbor/src/cbor/
H A Dmaps.c31 .data = _cbor_alloc_multiple(sizeof(struct cbor_pair), size)}; in cbor_new_definite_map()
57 struct cbor_pair* data = cbor_map_handle(item); in _cbor_map_add_key()
78 item->data, sizeof(struct cbor_pair), new_allocation); in _cbor_map_add_key()
87 struct cbor_pair* data = cbor_map_handle(item); in _cbor_map_add_key()
107 bool cbor_map_add(cbor_item_t* item, struct cbor_pair pair) { in cbor_map_add()
122 struct cbor_pair* cbor_map_handle(const cbor_item_t* item) { in cbor_map_handle()
124 return (struct cbor_pair*)item->data; in cbor_map_handle()
H A Dmaps.h67 struct cbor_pair pair);
114 _CBOR_NODISCARD CBOR_EXPORT struct cbor_pair* cbor_map_handle(
H A Ddata.h201 struct cbor_pair { struct
H A Dserialization.c134 struct cbor_pair* items = cbor_map_handle(item); in cbor_serialized_size()
331 struct cbor_pair* handle = cbor_map_handle(item); in cbor_serialize_map()
H A Dcommon.c135 struct cbor_pair* handle = cbor_map_handle(item); in cbor_decref()
/freebsd/contrib/libcbor/test/
H A Dmap_test.c48 struct cbor_pair* handle = cbor_map_handle(map); in test_simple_map()
68 struct cbor_pair* handle = cbor_map_handle(map); in test_indef_simple_map()
95 struct cbor_pair* handle = cbor_map_handle(map); in test_def_nested_map()
98 struct cbor_pair* inner_handle = cbor_map_handle(handle[0].value); in test_def_nested_map()
119 struct cbor_pair* handle = cbor_map_handle(map); in test_streamed_key_map()
141 struct cbor_pair* handle = cbor_map_handle(map); in test_streamed_kv_map()
168 struct cbor_pair* handle = cbor_map_handle(map); in test_streamed_streamed_kv_map()
187 assert_false(cbor_map_add(map, (struct cbor_pair){.key = one, .value = two})); in test_map_add_full()
204 assert_false(cbor_map_add(map, (struct cbor_pair){.key = one, .value = two})); in test_map_add_too_big_to_realloc()
229 cbor_map_add(map, (struct cbor_pair){.key = key, .value = value})); in test_map_add()
H A Dcopy_test.c125 assert_true(cbor_map_add(item, (struct cbor_pair){ in test_def_map()
138 assert_true(cbor_map_add(item, (struct cbor_pair){ in test_indef_map()
339 assert_true(cbor_map_add(item, (struct cbor_pair){ in test_definite_map()
356 assert_true(cbor_map_add(item, (struct cbor_pair){ in test_definite_indef_map()
375 assert_true(cbor_map_add(item, (struct cbor_pair){ in test_definite_indef_map_nested()
399 assert_true(cbor_map_add(item, (struct cbor_pair){ in test_definite_map_alloc_failure()
412 assert_true(cbor_map_add(item, (struct cbor_pair){ in test_definite_map_key_alloc_failure()
428 assert_true(cbor_map_add(item, (struct cbor_pair){ in test_definite_map_value_alloc_failure()
669 cbor_map_add(item, (struct cbor_pair){cbor_move(cbor_build_uint8(42)), in test_map_alloc_failure()
681 cbor_map_add(item, (struct cbor_pair){cbor_move(cbor_build_uint8(42)), in test_map_key_alloc_failure()
[all …]
H A Dpretty_printer_test.c137 item, (struct cbor_pair){.key = cbor_move(cbor_build_uint8(1)), in test_definite_map()
150 item, (struct cbor_pair){.key = cbor_move(cbor_build_uint8(1)), in test_indefinite_map()
H A Dcbor_serialize_test.c359 assert_true(cbor_map_add(item, (struct cbor_pair){.key = one, .value = two})); in test_serialize_definite_map()
360 assert_true(cbor_map_add(item, (struct cbor_pair){.key = two, .value = one})); in test_serialize_definite_map()
376 assert_true(cbor_map_add(item, (struct cbor_pair){.key = one, .value = two})); in test_serialize_indefinite_map()
377 assert_true(cbor_map_add(item, (struct cbor_pair){.key = two, .value = one})); in test_serialize_indefinite_map()
392 assert_true(cbor_map_add(item, (struct cbor_pair){.key = one, .value = two})); in test_serialize_map_no_space()
/freebsd/contrib/libcbor/examples/
H A Dcreate_items.c16 root, (struct cbor_pair){ in main()
20 root, (struct cbor_pair){ in main()
/freebsd/contrib/libcbor/doc/source/api/
H A Dtype_5_maps.rst22 Storage requirements (definite) ``sizeof(cbor_pair) * size + sizeof(cbor_item_t)``
23 Storage requirements (indefinite) ``<= sizeof(cbor_item_t) + sizeof(cbor_pair) * size * BUFFER_GR…
/freebsd/contrib/libcbor/src/
H A Dcbor.c260 struct cbor_pair* it = cbor_map_handle(item); in cbor_copy()
273 if (!cbor_map_add(res, (struct cbor_pair){.key = key_copy, in cbor_copy()
390 struct cbor_pair* it = cbor_map_handle(item); in cbor_copy_definite()
406 res, (struct cbor_pair){.key = key_copy, .value = value_copy}); in cbor_copy_definite()
/freebsd/contrib/libfido2/src/
H A Dcbor.c66 struct cbor_pair *v; in cbor_map_iter()
230 struct cbor_pair pair; in cbor_add_bytestring()
259 struct cbor_pair pair; in cbor_add_string()
288 struct cbor_pair pair; in cbor_add_bool()
317 struct cbor_pair pair; in cbor_add_uint8()
346 struct cbor_pair pair; in cbor_add_arg()
476 struct cbor_pair alg; in cbor_encode_pubkey_param()
789 struct cbor_pair pair; in cbor_encode_hmac_secret_param()
H A Des256.c74 struct cbor_pair argv[5]; in es256_pk_encode()
H A Du2f.c445 struct cbor_pair kv[3]; in encode_cred_attstmt()
/freebsd/contrib/libfido2/fuzz/
H A Dwrap.c573 WRAP(struct cbor_pair *,
599 (cbor_item_t *item, struct cbor_pair pair),
/freebsd/contrib/libcbor/
H A DREADME.md97 root, (struct cbor_pair){
101 root, (struct cbor_pair){
/freebsd/contrib/libfido2/tools/
H A Dlargeblob.c449 struct cbor_pair *v; in decode_blob_entry()
/freebsd/contrib/libfido2/regress/
H A Dcred.c2898 struct cbor_pair kv; in push_kv()