| /freebsd-13.1/contrib/libcbor/src/cbor/ |
| H A D | maps.c | 31 .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() 79 item->data, sizeof(struct cbor_pair), new_allocation); in _cbor_map_add_key() 88 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 D | maps.h | 62 CBOR_EXPORT bool cbor_map_add(cbor_item_t *item, struct cbor_pair pair); 106 CBOR_EXPORT struct cbor_pair *cbor_map_handle(const cbor_item_t *item);
|
| H A D | data.h | 194 struct cbor_pair { struct
|
| H A D | common.c | 127 struct cbor_pair *handle = cbor_map_handle(item); in cbor_decref()
|
| H A D | serialization.c | 215 struct cbor_pair *handle = cbor_map_handle(item); in cbor_serialize_map()
|
| /freebsd-13.1/contrib/libcbor/test/ |
| H A D | type_5_test.c | 46 struct cbor_pair *handle = cbor_map_handle(map); in test_simple_map() 66 struct cbor_pair *handle = cbor_map_handle(map); in test_indef_simple_map() 93 struct cbor_pair *handle = cbor_map_handle(map); in test_def_nested_map() 96 struct cbor_pair *inner_handle = cbor_map_handle(handle[0].value); in test_def_nested_map() 117 struct cbor_pair *handle = cbor_map_handle(map); in test_streamed_key_map() 139 struct cbor_pair *handle = cbor_map_handle(map); in test_streamed_kv_map() 166 struct cbor_pair *handle = cbor_map_handle(map); in test_streamed_streamed_kv_map()
|
| H A D | cbor_serialize_test.c | 197 cbor_map_add(item, (struct cbor_pair){.key = one, .value = two}); in test_serialize_definite_map() 198 cbor_map_add(item, (struct cbor_pair){.key = two, .value = one}); in test_serialize_definite_map() 213 assert_true(cbor_map_add(item, (struct cbor_pair){.key = one, .value = two})); in test_serialize_indefinite_map() 214 assert_true(cbor_map_add(item, (struct cbor_pair){.key = two, .value = one})); in test_serialize_indefinite_map()
|
| H A D | copy_test.c | 130 cbor_map_add(item, (struct cbor_pair){ in test_def_map() 143 cbor_map_add(item, (struct cbor_pair){ in test_indef_map()
|
| H A D | memory_allocation_test.c | 246 cbor_map_add(map, (struct cbor_pair){.key = key, .value = value})); in test_map_add()
|
| /freebsd-13.1/contrib/libcbor/examples/ |
| H A D | create_items.c | 16 (struct cbor_pair){ in main() 20 (struct cbor_pair){ in main()
|
| /freebsd-13.1/contrib/libcbor/doc/source/api/ |
| H A D | type_5.rst | 13 Storage requirements (definite) ``sizeof(cbor_pair) * size + sizeof(cbor_item_t)`` 14 Storage requirements (indefinite) ``<= sizeof(cbor_item_t) + sizeof(cbor_pair) * size * BUFFER_GR…
|
| /freebsd-13.1/contrib/libfido2/src/ |
| H A D | cbor.c | 65 struct cbor_pair *v; in cbor_map_iter() 229 struct cbor_pair pair; in cbor_add_bytestring() 258 struct cbor_pair pair; in cbor_add_string() 287 struct cbor_pair pair; in cbor_add_bool() 316 struct cbor_pair pair; in cbor_add_uint8() 345 struct cbor_pair pair; in cbor_add_arg() 475 struct cbor_pair alg; in cbor_encode_pubkey_param() 776 struct cbor_pair pair; in cbor_encode_hmac_secret_param()
|
| H A D | es256.c | 64 struct cbor_pair argv[5]; in es256_pk_encode()
|
| /freebsd-13.1/contrib/libcbor/src/ |
| H A D | cbor.c | 206 struct cbor_pair *it = cbor_map_handle(item); in cbor_copy() 208 cbor_map_add(res, (struct cbor_pair){ in cbor_copy()
|
| /freebsd-13.1/contrib/libcbor/ |
| H A D | README.md | 71 cbor_map_add(root, (struct cbor_pair) { 75 cbor_map_add(root, (struct cbor_pair) {
|
| /freebsd-13.1/contrib/libcbor/doc/source/ |
| H A D | using.rst | 70 cbor_map_add(root, (struct cbor_pair) { 74 cbor_map_add(root, (struct cbor_pair) {
|
| /freebsd-13.1/contrib/libfido2/fuzz/ |
| H A D | wrap.c | 511 WRAP(struct cbor_pair *, 537 (cbor_item_t *item, struct cbor_pair pair),
|
| /freebsd-13.1/contrib/libfido2/tools/ |
| H A D | largeblob.c | 424 struct cbor_pair *v; in decode_blob_entry()
|