Home
last modified time | relevance | path

Searched refs:cbor_typeof (Results 1 – 15 of 15) sorted by relevance

/freebsd/contrib/libcbor/test/
H A Dmap_test.c28 assert_true(cbor_typeof(map) == CBOR_TYPE_MAP); in test_empty_map()
43 assert_true(cbor_typeof(map) == CBOR_TYPE_MAP); in test_simple_map()
63 assert_true(cbor_typeof(map) == CBOR_TYPE_MAP); in test_indef_simple_map()
90 assert_true(cbor_typeof(map) == CBOR_TYPE_MAP); in test_def_nested_map()
96 assert_true(cbor_typeof(handle[0].key) == CBOR_TYPE_STRING); in test_def_nested_map()
97 assert_true(cbor_typeof(handle[0].value) == CBOR_TYPE_MAP); in test_def_nested_map()
99 assert_true(cbor_typeof(inner_handle[0].key) == CBOR_TYPE_STRING); in test_def_nested_map()
100 assert_true(cbor_typeof(inner_handle[0].value) == CBOR_TYPE_STRING); in test_def_nested_map()
114 assert_true(cbor_typeof(map) == CBOR_TYPE_MAP); in test_streamed_key_map()
120 assert_true(cbor_typeof(handle[0].key) == CBOR_TYPE_STRING); in test_streamed_key_map()
[all …]
H A Dtag_test.c32 assert_true(cbor_typeof(tag) == CBOR_TYPE_TAG); in test_embedded_tag()
44 assert_true(cbor_typeof(tag) == CBOR_TYPE_TAG); in test_int8_tag()
56 assert_true(cbor_typeof(tag) == CBOR_TYPE_TAG); in test_int16_tag()
68 assert_true(cbor_typeof(tag) == CBOR_TYPE_TAG); in test_int32_tag()
81 assert_true(cbor_typeof(tag) == CBOR_TYPE_TAG); in test_int64_tag()
93 assert_true(cbor_typeof(tag) == CBOR_TYPE_TAG); in test_nested_tag()
96 assert_true(cbor_typeof(nested_tag) == CBOR_TYPE_TAG); in test_nested_tag()
117 assert_true(cbor_typeof(tag) == CBOR_TYPE_TAG); in test_all_tag_values_supported()
130 assert_true(cbor_typeof(tag) == CBOR_TYPE_TAG); in test_build_tag()
H A Dbytestring_test.c139 assert_true(cbor_typeof(bs) == CBOR_TYPE_BYTESTRING); in test_empty_bs()
150 assert_true(cbor_typeof(bs) == CBOR_TYPE_BYTESTRING); in test_embedded_bs()
169 assert_true(cbor_typeof(bs) == CBOR_TYPE_BYTESTRING); in test_short_bs1()
182 assert_true(cbor_typeof(bs) == CBOR_TYPE_BYTESTRING); in test_short_bs2()
194 assert_true(cbor_typeof(bs) == CBOR_TYPE_BYTESTRING); in test_half_bs()
206 assert_true(cbor_typeof(bs) == CBOR_TYPE_BYTESTRING); in test_int_bs()
218 assert_true(cbor_typeof(bs) == CBOR_TYPE_BYTESTRING); in test_long_bs()
232 assert_true(cbor_typeof(bs) == CBOR_TYPE_BYTESTRING); in test_zero_indef()
248 assert_true(cbor_typeof(bs) == CBOR_TYPE_BYTESTRING); in test_short_indef()
272 assert_true(cbor_typeof(bs) == CBOR_TYPE_BYTESTRING); in test_two_indef()
H A Dstring_test.c21 assert_true(cbor_typeof(string) == CBOR_TYPE_STRING); in test_empty_string()
37 assert_true(cbor_typeof(string) == CBOR_TYPE_STRING); in test_short_string()
55 assert_true(cbor_typeof(string) == CBOR_TYPE_STRING); in test_short_multibyte_string()
84 assert_true(cbor_typeof(string) == CBOR_TYPE_STRING); in test_int8_string()
118 assert_true(cbor_typeof(string) == CBOR_TYPE_STRING); in test_int16_string()
151 assert_true(cbor_typeof(string) == CBOR_TYPE_STRING); in test_int32_string()
185 assert_true(cbor_typeof(string) == CBOR_TYPE_STRING); in test_int64_string()
207 assert_true(cbor_typeof(string) == CBOR_TYPE_STRING); in test_short_indef_string()
226 assert_true(cbor_typeof(string) == CBOR_TYPE_STRING); in test_invalid_utf()
H A Dnegint_test.c24 assert_true(cbor_typeof(number) == CBOR_TYPE_NEGINT); in test_very_short_int()
38 assert_true(cbor_typeof(number) == CBOR_TYPE_NEGINT); in test_short_int()
52 assert_true(cbor_typeof(number) == CBOR_TYPE_NEGINT); in test_half_int()
66 assert_true(cbor_typeof(number) == CBOR_TYPE_NEGINT); in test_int()
80 assert_true(cbor_typeof(number) == CBOR_TYPE_NEGINT); in test_long_int()
H A Duint_test.c25 assert_true(cbor_typeof(number) == CBOR_TYPE_UINT); in test_very_short_int()
45 assert_true(cbor_typeof(number) == CBOR_TYPE_UINT); in test_short_int()
59 assert_true(cbor_typeof(number) == CBOR_TYPE_UINT); in test_half_int()
73 assert_true(cbor_typeof(number) == CBOR_TYPE_UINT); in test_int()
87 assert_true(cbor_typeof(number) == CBOR_TYPE_UINT); in test_long_int()
H A Dcallbacks_test.c54 assert_true(cbor_typeof(bytestring) == CBOR_TYPE_BYTESTRING); in test_builder_byte_string_callback_append()
62 assert_true(cbor_typeof(bytestring) == CBOR_TYPE_BYTESTRING); in test_builder_byte_string_callback_append()
97 assert_true(cbor_typeof(bytestring) == CBOR_TYPE_BYTESTRING); in test_builder_byte_string_callback_append_alloc_failure()
132 assert_true(cbor_typeof(bytestring) == CBOR_TYPE_BYTESTRING); in test_builder_byte_string_callback_append_item_alloc_failure()
167 assert_true(cbor_typeof(bytestring) == CBOR_TYPE_BYTESTRING); in test_builder_byte_string_callback_append_parent_alloc_failure()
239 assert_true(cbor_typeof(string) == CBOR_TYPE_STRING); in test_builder_string_callback_append_alloc_failure()
273 assert_true(cbor_typeof(string) == CBOR_TYPE_STRING); in test_builder_string_callback_append_item_alloc_failure()
307 assert_true(cbor_typeof(string) == CBOR_TYPE_STRING); in test_builder_string_callback_append_parent_alloc_failure()
H A Darray_test.c20 assert_true(cbor_typeof(arr) == CBOR_TYPE_ARRAY); in test_empty_array()
33 assert_true(cbor_typeof(arr) == CBOR_TYPE_ARRAY); in test_simple_array()
59 assert_true(cbor_typeof(arr) == CBOR_TYPE_ARRAY); in test_nested_arrays()
80 assert_true(cbor_typeof(arr) == CBOR_TYPE_ARRAY); in test_indef_arrays()
100 assert_true(cbor_typeof(arr) == CBOR_TYPE_ARRAY); in test_nested_indef_arrays()
/freebsd/contrib/libcbor/src/cbor/
H A Dcommon.c22 cbor_type cbor_typeof(const cbor_item_t* item) { in cbor_typeof() function
29 return cbor_typeof(item) == CBOR_TYPE_UINT; in cbor_isa_uint()
33 return cbor_typeof(item) == CBOR_TYPE_NEGINT; in cbor_isa_negint()
37 return cbor_typeof(item) == CBOR_TYPE_BYTESTRING; in cbor_isa_bytestring()
41 return cbor_typeof(item) == CBOR_TYPE_STRING; in cbor_isa_string()
45 return cbor_typeof(item) == CBOR_TYPE_ARRAY; in cbor_isa_array()
49 return cbor_typeof(item) == CBOR_TYPE_MAP; in cbor_isa_map()
53 return cbor_typeof(item) == CBOR_TYPE_TAG; in cbor_isa_tag()
57 return cbor_typeof(item) == CBOR_TYPE_FLOAT_CTRL; in cbor_isa_float_ctrl()
H A Dserialization.c22 CBOR_ASSERT_VALID_TYPE(cbor_typeof(item)); in cbor_serialize()
23 switch (cbor_typeof(item)) { in cbor_serialize()
65 CBOR_ASSERT_VALID_TYPE(cbor_typeof(item)); in cbor_serialized_size()
66 switch (cbor_typeof(item)) { in cbor_serialized_size()
H A Dcommon.h178 CBOR_EXPORT cbor_type cbor_typeof(
/freebsd/contrib/libcbor/src/
H A Dcbor.c165 CBOR_ASSERT_VALID_TYPE(cbor_typeof(item)); in cbor_copy()
166 switch (cbor_typeof(item)) { in cbor_copy()
303 CBOR_ASSERT_VALID_TYPE(cbor_typeof(item)); in cbor_copy_definite()
304 switch (cbor_typeof(item)) { in cbor_copy_definite()
451 CBOR_ASSERT(cbor_typeof(item) >= CBOR_TYPE_UINT && in _cbor_nested_describe()
452 cbor_typeof(item) <= CBOR_TYPE_FLOAT_CTRL); in _cbor_nested_describe()
454 switch (cbor_typeof(item)) { in _cbor_nested_describe()
/freebsd/contrib/libcbor/doc/source/api/
H A Ditem_types.rst10 .. doxygenfunction:: cbor_typeof
/freebsd/contrib/libcbor/examples/
H A Dcbor2cjson.c20 switch (cbor_typeof(item)) { in cbor_to_cjson()
H A Dcrash_course.c22 assert(cbor_typeof(string_item) == CBOR_TYPE_STRING); in item_examples()