Home
last modified time | relevance | path

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

/mcumgr-2.7.6/cborattr/test/src/testcases/
Dcborattr_decode_string_array.c50 CborEncoder array; in test_encode_string_array_one() local
62 cbor_encoder_create_array(&data, &array, CborIndefiniteLength); in test_encode_string_array_one()
63 cbor_encode_text_stringz(&array, "asdf"); in test_encode_string_array_one()
64 cbor_encoder_close_container(&data, &array); in test_encode_string_array_one()
73 CborEncoder array; in test_encode_string_array_three() local
85 cbor_encoder_create_array(&data, &array, CborIndefiniteLength); in test_encode_string_array_three()
86 cbor_encode_text_stringz(&array, "asdf"); in test_encode_string_array_three()
87 cbor_encode_text_stringz(&array, "k"); in test_encode_string_array_three()
88 cbor_encode_text_stringz(&array, "blurb"); in test_encode_string_array_three()
89 cbor_encoder_close_container(&data, &array); in test_encode_string_array_three()
[all …]
Dcborattr_decode_int_array.c50 CborEncoder array; in test_encode_int_array() local
61 cbor_encoder_create_array(&data, &array, CborIndefiniteLength); in test_encode_int_array()
62 cbor_encode_int(&array, 1); in test_encode_int_array()
63 cbor_encode_int(&array, 2); in test_encode_int_array()
64 cbor_encode_int(&array, 33); in test_encode_int_array()
65 cbor_encode_int(&array, 15); in test_encode_int_array()
66 cbor_encode_int(&array, -4); in test_encode_int_array()
67 cbor_encoder_close_container(&data, &array); in test_encode_int_array()
85 .addr.array.element_type = CborAttrIntegerType, in TEST_CASE()
86 .addr.array.arr.integers.store = arr_data, in TEST_CASE()
[all …]
Dcborattr_decode_unnamed_array.c50 CborEncoder array; in test_encode_unnamed_array() local
59 cbor_encoder_create_array(&data, &array, CborIndefiniteLength); in test_encode_unnamed_array()
60 cbor_encode_int(&array, 1); in test_encode_unnamed_array()
61 cbor_encode_int(&array, 2); in test_encode_unnamed_array()
62 cbor_encode_int(&array, 33); in test_encode_unnamed_array()
63 cbor_encoder_close_container(&data, &array); in test_encode_unnamed_array()
80 .addr.array.element_type = CborAttrIntegerType, in TEST_CASE()
81 .addr.array.arr.integers.store = arr_data, in TEST_CASE()
82 .addr.array.count = &arr_cnt, in TEST_CASE()
83 .addr.array.maxlen = sizeof(arr_data) / sizeof(arr_data[0]), in TEST_CASE()
Dcborattr_decode_bool_array.c50 CborEncoder array; in test_encode_bool_array() local
61 cbor_encoder_create_array(&data, &array, CborIndefiniteLength); in test_encode_bool_array()
62 cbor_encode_boolean(&array, true); in test_encode_bool_array()
63 cbor_encode_boolean(&array, true); in test_encode_bool_array()
64 cbor_encode_boolean(&array, false); in test_encode_bool_array()
65 cbor_encoder_close_container(&data, &array); in test_encode_bool_array()
82 .addr.array.element_type = CborAttrBooleanType, in TEST_CASE()
83 .addr.array.arr.booleans.store = arr_data, in TEST_CASE()
84 .addr.array.count = &arr_cnt, in TEST_CASE()
85 .addr.array.maxlen = sizeof(arr_data) / sizeof(arr_data[0]), in TEST_CASE()
Dcborattr_decode_obj_array.c50 CborEncoder array; in test_encode_obj_array() local
61 cbor_encoder_create_array(&data, &array, CborIndefiniteLength); in test_encode_obj_array()
63 cbor_encoder_create_map(&array, &obj, CborIndefiniteLength); in test_encode_obj_array()
68 cbor_encoder_close_container(&array, &obj); in test_encode_obj_array()
70 cbor_encoder_create_map(&array, &obj, CborIndefiniteLength); in test_encode_obj_array()
75 cbor_encoder_close_container(&array, &obj); in test_encode_obj_array()
77 cbor_encoder_close_container(&data, &array); in test_encode_obj_array()
93 .addr.array.element_type = CborAttrNullType, in TEST_CASE()
94 .addr.array.arr.objects.base = arr_data, in TEST_CASE()
95 .addr.array.count = &arr_cnt, in TEST_CASE()
[all …]
Dcborattr_decode_object_array.c50 CborEncoder array; in test_encode_object_array() local
63 cbor_encoder_create_array(&data, &array, CborIndefiniteLength); in test_encode_object_array()
65 cbor_encoder_create_map(&array, &sub_obj, CborIndefiniteLength); in test_encode_object_array()
68 cbor_encoder_close_container(&array, &sub_obj); in test_encode_object_array()
70 cbor_encoder_create_map(&array, &sub_obj, CborIndefiniteLength); in test_encode_object_array()
73 cbor_encoder_close_container(&array, &sub_obj); in test_encode_object_array()
75 cbor_encoder_create_map(&array, &sub_obj, CborIndefiniteLength); in test_encode_object_array()
78 cbor_encoder_close_container(&array, &sub_obj); in test_encode_object_array()
80 cbor_encoder_close_container(&data, &array); in test_encode_object_array()
Dcborattr_encode_simple.c84 .array = { in TEST_CASE_SELF()
Dcborattr_encode_omit.c92 .array = { in TEST_CASE_SELF()
/mcumgr-2.7.6/cborattr/include/cborattr/
Dcborattr.h115 struct cbor_array_t array; member
155 struct cbor_out_arr_val_t array; member
181 .addr.array.element_type = CborAttrStructObjectType, \
182 .addr.array.arr.objects.subtype = e, \
183 .addr.array.arr.objects.base = (char*)a, \
184 .addr.array.arr.objects.stride = sizeof(a[0]), \
185 .addr.array.count = n, \
186 .addr.array.maxlen = (int)(sizeof(a)/sizeof(a[0]))
/mcumgr-2.7.6/cmd/shell_mgmt/src/
Dshell_mgmt.c60 .addr.array = { in shell_mgmt_exec()
/mcumgr-2.7.6/cborattr/src/
Dcborattr.c299 err |= cbor_read_array(&cur_value, &cursor->addr.array); in cbor_internal_read_object()
550 rc = cbor_write_arr_val(enc, &val->array); in cbor_write_val()