/freebsd/contrib/libcbor/test/ |
H A D | cbor_serialize_test.c | 8 // cbor_serialize_alloc 502 assert_size_equal(cbor_serialize_alloc(item, &output, &output_size), 37); in test_auto_serialize_too_large() 514 assert_size_equal(cbor_serialize_alloc(item, &output, NULL), 1); in test_auto_serialize_alloc_fail() 532 assert_size_equal(cbor_serialize_alloc(item, &output, &output_size), 0); in test_auto_serialize_zero_len_bytestring() 547 assert_size_equal(cbor_serialize_alloc(item, &output, &output_size), 0); 560 assert_size_equal(cbor_serialize_alloc(item, &output, NULL), 1); in test_auto_serialize_zero_len_bytestring_chunk() 571 assert_size_equal(cbor_serialize_alloc(item, &output, NULL), 1); in test_auto_serialize_zero_len_string_chunk() 586 assert_size_equal(cbor_serialize_alloc(item, &output, NULL), 3); in test_auto_serialize_zero_len_array() 600 assert_size_equal(cbor_serialize_alloc(item, &output, NULL), 3); in test_auto_serialize_zero_len_map() 611 assert_size_equal(cbor_serialize_alloc(ite [all...] |
/freebsd/contrib/libcbor/doc/source/api/ |
H A D | encoding.rst | 4 …to encode data items is using the :func:`cbor_serialize` or :func:`cbor_serialize_alloc` functions: 7 .. doxygenfunction:: cbor_serialize_alloc
|
/freebsd/contrib/libcbor/examples/ |
H A D | create_items.c | 27 cbor_serialize_alloc(root, &buffer, &buffer_size); in main()
|
H A D | cjson2cbor.c | 137 cbor_serialize_alloc(cbor, &buffer, &buffer_size); in main()
|
/freebsd/contrib/libcbor/ |
H A D | CHANGELOG.md | 28 - [Fix a regression in `cbor_serialize_alloc` that caused serialization of zero-length strings and bytestrings or byte/strings with zero-length chunks to fail](https://github.com/PJK/libcbor/pull/260) (discovered by [martelletto](https://github.com/martelletto)) 32 - Make the buffer_size optional in `cbor_serialize_alloc` [[#205]](https://github.com/PJK/libcbor/pull/205) (by [hughsie](https://github.com/hughsie)) 47 - [Reworked `cbor_serialize_alloc` to allocate the exact amount of memory necessary upfront](https://github.com/PJK/libcbor/pull/251) 48 - This should significantly speed up `cbor_serialize_alloc` for large items by avoiding multiple reallocation iterations 49 - Clients should not use the return value of `cbor_serialize_alloc`. It may be removed in the future.
|
H A D | README.md | 81 cbor_serialize_alloc(root, &buffer, &buffer_size);
|
/freebsd/contrib/libfido2/fuzz/ |
H A D | wrapped.sym | 26 cbor_serialize_alloc
|
H A D | fuzz_netlink.c | 78 if ((cbor_len = cbor_serialize_alloc(array, &cbor, in pack()
|
H A D | fuzz_hid.c | 107 if ((cbor_len = cbor_serialize_alloc(array, &cbor, in pack()
|
H A D | fuzz_largeblob.c | 121 if ((cbor_len = cbor_serialize_alloc(array, &cbor, in pack()
|
H A D | fuzz_pcsc.c | 96 if ((cbor_len = cbor_serialize_alloc(array, &cbor, in pack()
|
H A D | fuzz_credman.c | 144 if ((cbor_len = cbor_serialize_alloc(array, &cbor, in pack()
|
H A D | wrap.c | 630 cbor_serialize_alloc,
|
H A D | fuzz_bio.c | 157 if ((cbor_len = cbor_serialize_alloc(array, &cbor, in pack()
|
H A D | fuzz_mgmt.c | 141 if ((cbor_len = cbor_serialize_alloc(array, &cbor, in pack()
|
H A D | fuzz_assert.c | 143 if ((cbor_len = cbor_serialize_alloc(array, &cbor, in pack()
|
H A D | fuzz_cred.c | 153 if ((cbor_len = cbor_serialize_alloc(array, &cbor, in pack()
|
/freebsd/contrib/libcbor/src/cbor/ |
H A D | serialization.h | 65 CBOR_EXPORT size_t cbor_serialize_alloc(const cbor_item_t *item,
|
H A D | serialization.c | 154 size_t cbor_serialize_alloc(const cbor_item_t *item, unsigned char **buffer, in cbor_serialize_alloc() function
|
/freebsd/contrib/libcbor/oss-fuzz/ |
H A D | cbor_load_fuzzer.cc | 78 cbor_serialize_alloc(item, &buffer, &buffer_size); in LLVMFuzzerTestOneInput()
|
/freebsd/contrib/libfido2/src/ |
H A D | blob.c | 128 if ((b->len = cbor_serialize_alloc(item, &b->ptr, &alloc)) == 0) { in fido_blob_serialise()
|
H A D | u2f.c | 131 (fake_cbor_ad->len = cbor_serialize_alloc(item, &fake_cbor_ad->ptr, in authdata_fake() 421 if ((cbor_blob->len = cbor_serialize_alloc(pk_cbor, &cbor_blob->ptr, in cbor_blob_from_ec_point() 479 if ((out->len = cbor_serialize_alloc(item, &out->ptr, in encode_cred_attstmt() 565 if ((out->len = cbor_serialize_alloc(authdata_cbor, &out->ptr, in encode_cred_authdata()
|
H A D | cbor.c | 410 cbor_len = cbor_serialize_alloc(flat, &cbor, &cbor_alloc_len); in cbor_build_frame() 1306 (authdata_cbor->len = cbor_serialize_alloc(item, in cbor_decode_cred_authdata() 1355 (authdata_cbor->len = cbor_serialize_alloc(item, in cbor_decode_assert_authdata() 1468 (attstmt->cbor.len = cbor_serialize_alloc(item, in cbor_decode_attstmt()
|
H A D | bio.c | 38 if ((cbor_len = cbor_serialize_alloc(*param, &cbor, in bio_prepare_hmac()
|
/freebsd/contrib/libcbor/doc/source/ |
H A D | using.rst | 81 cbor_serialize_alloc(root, &buffer, &buffer_size);
|