Home
last modified time | relevance | path

Searched refs:cbor_load (Results 1 – 25 of 41) sorted by relevance

12

/freebsd/contrib/libcbor/test/
H A Dbad_inputs_test.c20 item = cbor_load(data1, 2, &res); in test_1()
28 item = cbor_load(data2, 1, &res); in test_2()
36 item = cbor_load(data3, 1, &res); in test_3()
45 item = cbor_load(data4, 7, &res); in test_4()
54 item = cbor_load(data5, 6, &res); in test_5()
63 item = cbor_load(data6, 5, &res); in test_6()
75 item = cbor_load(data7, 16, &res); in test_7()
88 item = cbor_load(data8, 39, &res); in test_8()
96 item = cbor_load(data9, 8, &res); in test_9()
H A Dbytestring_test.c137 bs = cbor_load(data1, 2, &res); in test_empty_bs()
148 bs = cbor_load(data2, 2, &res); in test_embedded_bs()
161 bs = cbor_load(data3, 2, &res); in test_notenough_data()
167 bs = cbor_load(data3, 4, &res); in test_short_bs1()
180 bs = cbor_load(data4, 259, &res); in test_short_bs2()
192 bs = cbor_load(data5, 259, &res); in test_half_bs()
204 bs = cbor_load(data6, 261, &res); in test_int_bs()
216 bs = cbor_load(data7, 265, &res); in test_long_bs()
230 bs = cbor_load(data9, 2, &res); in test_zero_indef()
246 bs = cbor_load(data10, 6, &res); in test_short_indef()
[all …]
H A Dtag_test.c18 tag = cbor_load(embedded_tag_data, 2, &res); in test_refcounting()
31 tag = cbor_load(embedded_tag_data, 2, &res); in test_embedded_tag()
43 tag = cbor_load(int8_tag_data, 3, &res); in test_int8_tag()
55 tag = cbor_load(int16_tag_data, 4, &res); in test_int16_tag()
67 tag = cbor_load(int32_tag_data, 6, &res); in test_int32_tag()
80 tag = cbor_load(int64_tag_data, 10, &res); in test_int64_tag()
92 tag = cbor_load(nested_tag_data, 4, &res); in test_nested_tag()
115 tag = cbor_load(serialized_tag, serialized_tag_size, &res); in test_all_tag_values_supported()
H A Duint_test.c24 number = cbor_load(data1, 2, &res); in test_very_short_int()
38 number = cbor_load(data2, 1, &res); in test_incomplete_data()
44 number = cbor_load(data2, 3, &res); in test_short_int()
58 number = cbor_load(data3, 5, &res); in test_half_int()
72 number = cbor_load(data4, 6, &res); in test_int()
86 number = cbor_load(data5, 10, &res); in test_long_int()
100 number = cbor_load(data5, 10, &res); in test_refcounting()
110 number = cbor_load(data5, 0, &res); in test_empty_input()
H A Dfloat_ctrl_test.c28 float_ctrl = cbor_load(float2_data, 3, &res); in test_float2()
41 float_ctrl = cbor_load(float4_data, 5, &res); in test_float4()
55 float_ctrl = cbor_load(float8_data, 9, &res); in test_float8()
70 float_ctrl = cbor_load(null_data, 1, &res); in test_null()
82 float_ctrl = cbor_load(undef_data, 1, &res); in test_undef()
95 float_ctrl = cbor_load(bool_data, 1, &res); in test_bool()
107 float_ctrl = cbor_load(bool_data + 1, 1, &res); in test_bool()
H A Dstring_test.c19 string = cbor_load(empty_string_data, 1, &res); in test_empty_string()
35 string = cbor_load(short_string_data, 13, &res); in test_short_string()
53 string = cbor_load(short_multibyte_string_data, 16, &res); in test_short_multibyte_string()
82 string = cbor_load(int8_string_data, 152, &res); in test_int8_string()
116 string = cbor_load(int16_string_data, 153, &res); in test_int16_string()
149 string = cbor_load(int32_string_data, 155, &res); in test_int32_string()
183 string = cbor_load(int64_string_data, 159, &res); in test_int64_string()
205 string = cbor_load(short_indef_string_data, 6, &res); in test_short_indef_string()
223 string = cbor_load(string_data, 2, &res); in test_invalid_utf()
H A Dmap_test.c26 map = cbor_load(empty_map, 1, &res); in test_empty_map()
41 map = cbor_load(simple_map, 5, &res); in test_simple_map()
61 map = cbor_load(simple_indef_map, 6, &res); in test_indef_simple_map()
88 map = cbor_load(def_nested_map, 34, &res); in test_def_nested_map()
112 map = cbor_load(streamed_key_map, 8, &res); in test_streamed_key_map()
134 map = cbor_load(streamed_kv_map, 13, &res); in test_streamed_kv_map()
161 map = cbor_load(streamed_streamed_kv_map, 14, &res); in test_streamed_streamed_kv_map()
246 map = cbor_load(test_indef_map, 6, &res); in test_indef_map_decode()
260 map = cbor_load(test_break_in_def_map, 7, &res); in test_break_in_def_map_decode()
H A Dnegint_test.c23 number = cbor_load(data1, 2, &res); in test_very_short_int()
37 number = cbor_load(data2, 3, &res); in test_short_int()
51 number = cbor_load(data3, 5, &res); in test_half_int()
65 number = cbor_load(data4, 6, &res); in test_int()
79 number = cbor_load(data5, 10, &res); in test_long_int()
H A Darray_test.c18 arr = cbor_load(data1, 2, &res); in test_empty_array()
31 arr = cbor_load(data2, 3, &res); in test_simple_array()
57 arr = cbor_load(data3, 5, &res); in test_nested_arrays()
78 arr = cbor_load(test_indef_arrays_data, 4, &res); in test_indef_arrays()
98 arr = cbor_load(test_nested_indef_arrays_data, 7, &res); in test_nested_indef_arrays()
199 array = cbor_load(simple_indef_array, 4, &res); in test_indef_array_decode()
H A Dstack_over_limit_test.c20 assert_null(cbor_load(overflow_data, overflow_data_len, &res)); in test_stack_over_limit()
H A Dfuzz_test.c50 item = cbor_load(data, length, &res); in run_round()
H A Dfloat_ctrl_encoders_test.c42 cbor_item_t* half_float = cbor_load(buffer, 3, &res); in assert_half_float_codec_identity()
/freebsd/contrib/libcbor/src/
H A Dcbor.h47 _CBOR_NODISCARD CBOR_EXPORT cbor_item_t* cbor_load(
/freebsd/contrib/libcbor/examples/
H A Dreadfile.c33 cbor_item_t* item = cbor_load(buffer, length, &result); in main()
H A Dcbor_sequence.c75 cbor_item_t* item = cbor_load(buffer + offset, file_size - offset, &result); in read_cbor_sequence()
H A Dcbor2cjson.c102 cbor_item_t* item = cbor_load(buffer, length, &result); in main()
H A Dcrash_course.c57 cbor_item_t* decoded_item = cbor_load(buffer, buffer_size, &result); in encode_decode()
/freebsd/contrib/libcbor/doc/source/api/
H A Ddecoding.rst41 .. doxygenfunction:: cbor_load
/freebsd/contrib/libfido2/fuzz/
H A Dwrapped.sym20 cbor_load
H A Dfuzz_netlink.c33 (item = cbor_load(ptr, len, &cbor)) == NULL || in unpack()
H A Dfuzz_attobj.c174 (item = cbor_load(ptr, len, &cbor)) == NULL || in unpack()
H A Dfuzz_hid.c60 (item = cbor_load(ptr, len, &cbor)) == NULL || in unpack()
H A Dfuzz_largeblob.c72 (item = cbor_load(ptr, len, &cbor)) == NULL || in unpack()
/freebsd/contrib/libcbor/oss-fuzz/
H A Dcbor_load_fuzzer.cc73 cbor_item_t *item = cbor_load(Data, Size, &result); in LLVMFuzzerTestOneInput()
/freebsd/contrib/libfido2/src/
H A Dcbor.c140 if ((item = cbor_load(blob + 1, blob_len - 1, &cbor)) == NULL) { in cbor_parse_reply()
1108 if ((item = cbor_load(*buf, *len, &cbor)) == NULL) { in decode_attcred()
1257 if ((item = cbor_load(*buf, *len, &cbor)) == NULL) { in decode_cred_extensions()
1325 if ((item = cbor_load(*buf, *len, &cbor)) == NULL) { in decode_assert_extensions()

12