Home
last modified time | relevance | path

Searched refs:cbor_string_handle (Results 1 – 12 of 12) sorted by relevance

/freebsd/contrib/libcbor/test/
H A Dstring_test.c41 assert_memory_equal(&"Hello world!", cbor_string_handle(string), 12); in test_short_string()
59 assert_memory_equal(&"Čaues ßvěte!", cbor_string_handle(string), 15); in test_short_multibyte_string()
90 cbor_string_handle(string), in test_int8_string()
124 cbor_string_handle(string), in test_int16_string()
157 cbor_string_handle(string), in test_int32_string()
191 cbor_string_handle(string), in test_int64_string()
215 assert_true(*cbor_string_handle(cbor_string_chunks_handle(string)[0]) == 'e'); in test_short_indef_string()
238 assert_memory_equal(cbor_string_handle(string), "Hello!", strlen("Hello!")); in test_inline_creation()
302 assert_ptr_equal(cbor_string_handle(string), string_data); in test_set_handle()
318 assert_ptr_equal(cbor_string_handle(string), string_data); in test_set_handle_multibyte_codepoint()
[all …]
H A Dmap_test.c101 assert_memory_equal(cbor_string_handle(inner_handle[0].value), in test_def_nested_map()
149 cbor_string_handle(cbor_string_chunks_handle(handle[0].value)[1]), "d", in test_streamed_kv_map()
176 cbor_string_handle(cbor_string_chunks_handle(handle[0].value)[1]), "d", in test_streamed_streamed_kv_map()
H A Dcopy_test.c83 assert_memory_equal(cbor_string_handle(copy = cbor_copy(item)), in test_def_string()
84 cbor_string_handle(item), 3); in test_def_string()
97 assert_memory_equal(cbor_string_handle(cbor_string_chunks_handle(copy)[0]), in test_indef_string()
235 assert_memory_equal(cbor_string_handle(copy = cbor_copy_definite(item)), in test_definite_string()
236 cbor_string_handle(item), 3); in test_definite_string()
245 assert_memory_equal(cbor_string_handle(copy = cbor_copy_definite(item)), in test_definite_indef_string()
H A Dcallbacks_test.c208 assert_memory_equal(cbor_string_handle(chunk), "abc", 3); in test_builder_string_callback_append()
210 assert_ptr_not_equal(cbor_string_handle(chunk), string_data); in test_builder_string_callback_append()
/freebsd/contrib/libcbor/examples/
H A Dcbor2cjson.c33 memcpy(null_terminated_string, cbor_string_handle(item), in cbor_to_cjson()
60 memcpy(key, cbor_string_handle(cbor_map_handle(item)[i].key), in cbor_to_cjson()
H A Dcrash_course.c28 assert(memcmp(cbor_string_handle(string_item), "Hello World!", in item_examples()
/freebsd/contrib/libcbor/src/cbor/
H A Dstrings.h71 cbor_string_handle(const cbor_item_t* item);
H A Dstrings.c127 unsigned char* cbor_string_handle(const cbor_item_t* item) { in cbor_string_handle() function
H A Dserialization.c271 memcpy(buffer + written, cbor_string_handle(item), length); in cbor_serialize_string()
/freebsd/contrib/libcbor/doc/source/api/
H A Dtype_3_strings.rst32 .. doxygenfunction:: cbor_string_handle
/freebsd/contrib/libcbor/src/
H A Dcbor.c199 return cbor_build_stringn((const char*)cbor_string_handle(item), in cbor_copy()
353 memcpy(combined_data + offset, cbor_string_handle(chunk), in cbor_copy_definite()
500 fwrite(cbor_string_handle(item), sizeof(unsigned char), in _cbor_nested_describe()
/freebsd/contrib/libfido2/src/
H A Dcbor.c52 memcmp(cbor_string_handle(prev), cbor_string_handle(curr), in ctap_check_cbor()
220 memcpy(*str, cbor_string_handle(item), len); in cbor_string_copy()