Home
last modified time | relevance | path

Searched full:type (Results 1 – 23 of 23) sorted by relevance

/zcbor-latest/
DARCHITECTURE.md25 Each CddlParser object represents a CDDL type.
27 The two most important member variables in CddlParser are `self.value` and `self.type`.
28 `self.type` is a string representing the base CDDL type, the options are (corresponding CBOR types …
46 `"OTHER"` means another type defined in the same document, and is used as a pointer to that type de…
49 `self.value` means different things for different values of `self.type`.
50 E.g. for `"UINT"`, `self.value` has the value dictated by the type, or `None` if different values a…
59 For `"OTHER"`, `self.value` is a string with the name of the type it refers to.
69 1. `Foo`, which has `self.type = "UINT"` and `self.value = None`
70 2. An anonymous child of Bar, which has `self.type = "OTHER"`, and `self.value = "Foo"`
71 3. Bar, which has `self.type = "LIST"`, and `self.value` is a python `list` containing the above ob…
[all …]
DREADME.md125 zcbor validate -c <CDDL description file> -t <which CDDL type to expect> -i <input data file>
126 zcbor convert -c <CDDL description file> -t <which CDDL type to expect> -i <input data file> -o <ou…
132 python3 <zcbor base>/zcbor/zcbor.py validate -c <CDDL description file> -t <which CDDL type to expe…
133 python3 <zcbor base>/zcbor/zcbor.py convert -c <CDDL description file> -t <which CDDL type to expec…
158 …as `{"zcbor_bstr": <any type>}` if the CBOR bytestring contains CBOR-formatted data, in which the …
160 …3. tags: In cbor2, tags are represented by a special type, `cbor2.CBORTag`. In YAML, these are rep…
172 zcbor code <--decode or --encode or both> -c <CDDL description file(s)> -t <which CDDL type(s) to e…
173 zcbor code <--decode or --encode or both> -c <CDDL description file(s)> -t <which CDDL type(s) to e…
191 Restrictions can be on type (int/string/list/bool etc.), on content (e.g. values/sizes of ints or s…
244 Which takes a yaml structure from mypet.yaml, validates it against the Pet type in the CDDL descrip…
[all …]
DRELEASE_NOTES.md28 …ers, add dummy calls using the function pointers, to verify that the arguments have the right type.
93 * zcbor_print.h: Fix iterator type and print formats to avoid compiler warnings
155 * zcbor.py: Fix range_checks for 'OTHER' type
165 * zcbor.py: DataTranslator: fix type checking
321 …_put/encode/decode/expect functions, to allow directly encoding and decoding size_t type variables.
330 * zcbor.py: Fix missing size check for repeated bstrs with their own type
396 …* Strings can be split between chunks, there is a new type `struct zcbor_string_fragment` for this…
429 * zcbor.py: Avoid #include-ing the full path of the type file.
430 * zcbor.py: Avoid creating functions with "None" result type.
/zcbor-latest/zcbor/
Dzcbor.py214 - For "OTHER" types, one instance points to another type definition.
241 # Any tags (type 6) to precede the element.
248 # If the type has a ".bits <group_name>", this will contain <group_name> which can be looked
251 # The "type" of the element. This follows the CBOR types loosely, but are more related to
254 # CDDL type defined with '='.
255 self.type = None
267 if type(self) not in type(self).cddl_regexes:
335 raise ValueError(f"Duplicate CDDL type found: {key}")
343 byte_multi = (8 if self.type in ["INT", "UINT", "NINT", "FLOAT"] else 1)
349 # Name a key/value pair by its key type or string value:
[all …]
/zcbor-latest/tests/cases/
Dcose.cddl21 ? 3 => tstr / int, ; content type
26 ; Comment out the counter signature since it creates a circular type.
72 ; Comment out the recipient list since it creates a circular type.
Dmanifest2.cddl131 suit-condition-version-comparison-type: SUIT_Condition_Version_Comparison_Types,
Dmanifest3.cddl138 suit-condition-version-comparison-type:
Dmanifest14.cddl243 suit-condition-version-comparison-type:
Dmanifest12.cddl269 suit-condition-version-comparison-type:
Dmanifest9.cddl299 suit-condition-version-comparison-type:
/zcbor-latest/tests/unit/test2_cpp/
Dtestcase.yaml8 type: multi_line
/zcbor-latest/include/
Dzcbor_common.h37 /** Convenience type that allows pointing to strings directly inside the payload
46 /** Type representing a string fragment.
80 /** The ZCBOR_SUPPORTS_SIZE_T will be defined if processing of size_t type variables directly
171 /** Function pointer type used with zcbor_multi_decode.
173 * This type is compatible with all decoding functions here and in the generated
181 * The major type is represented in the 3 first bits of the header byte.
195 /** Extract the major type, i.e. the first 3 bits of the header byte. */
Dzcbor_encode.h51 * The difference between _put and _encode is only in the argument type,
132 /** Encode 0 or more elements with the same type and constraints.
153 * The @ref zcbor_encoder_t type is designed to be compatible with all single-
Dzcbor_decode.h61 * @retval false If the value has the wrong type, the payload overflowed, the
263 /** Skip a single element, regardless of type and value.
275 /** Decode 0 or more elements with the same type and constraints.
297 * The @ref zcbor_decoder_t type is designed to be compatible with all single-
/zcbor-latest/samples/pet/include/
Dpet_decode.h25 #error "The type file was generated with a different default_max_qty than this file"
Dpet_encode.h25 #error "The type file was generated with a different default_max_qty than this file"
/zcbor-latest/tests/fuzz/
Dtest-afl.sh23 exit $(find build-afl/output/default/crashes/ -type f -printf x | wc -c)
/zcbor-latest/samples/pet/
DCMakeLists.txt18 -t Pet # Create a public API for decoding/encoding the "Pet" type from pet.cddl
/zcbor-latest/samples/pet/src/
Dpet_encode.c20 #error "The type file was generated with a different default_max_qty than this file"
Dpet_decode.c20 #error "The type file was generated with a different default_max_qty than this file"
/zcbor-latest/src/
Dzcbor_decode.c225 /* Value to be read doesn't have the right type. */ in zcbor_int_decode()
1456 "'any' type cannot be returned, only skipped.\r\n"); in zcbor_any_skip()
/zcbor-latest/tests/scripts/
Dtest_zcbor.py111 with self.assertRaises(ValueError, msg="Duplicate CDDL type found"):
/zcbor-latest/tests/decode/test5_corner_cases/src/
Dmain.c1881 /* UnionInt1 will be optimized, while UnionInt2 won't because it contains a separate type