Home
last modified time | relevance | path

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

/src/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()
H A Dcallbacks_test.c202 assert_memory_equal(cbor_string_handle(chunk), "abc", 3); in test_builder_string_callback_append()
204 assert_ptr_not_equal(cbor_string_handle(chunk), string_data); in test_builder_string_callback_append()
/src/contrib/libcbor/examples/
H A Dcbor2cjson.c33 memcpy(null_terminated_string, cbor_string_handle(item), in cbor_to_cjson()
59 memcpy(key, cbor_string_handle(cbor_map_handle(item)[i].key), in cbor_to_cjson()
/src/contrib/libcbor/src/cbor/
H A Dstrings.h71 cbor_string_handle(const cbor_item_t *item);
H A Dstrings.c125 unsigned char *cbor_string_handle(const cbor_item_t *item) { in cbor_string_handle() function
H A Dserialization.c245 memcpy(buffer + written, cbor_string_handle(item), length); in cbor_serialize_string()
/src/contrib/libcbor/doc/source/api/
H A Dtype_3.rst32 .. doxygenfunction:: cbor_string_handle
/src/contrib/libcbor/src/
H A Dcbor.c189 return cbor_build_stringn((const char *)cbor_string_handle(item), in cbor_copy()
356 fwrite(cbor_string_handle(item), sizeof(unsigned char), in _cbor_nested_describe()
/src/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()