Home
last modified time | relevance | path

Searched full:encode (Results 1 – 19 of 19) sorted by relevance

/zcbor-latest/tests/encode/test2_simple/
Dtestcase.yaml2 zcbor.encode.test2_simple:
4 tags: zcbor encode test
5 zcbor.encode.test2_simple.canonical:
7 tags: zcbor encode canonical test
/zcbor-latest/tests/encode/test4_senml/
Dtestcase.yaml2 zcbor.encode.test4_senml:
4 tags: zcbor encode test4
5 zcbor.encode.test4_senml.canonical:
7 tags: zcbor encode canonical test4
/zcbor-latest/tests/encode/test3_corner_cases/
Dtestcase.yaml2 zcbor.encode.test3_corner_cases:
4 tags: zcbor encode test3
5 zcbor.encode.test3_corner_cases.canonical:
7 tags: zcbor encode canonical test3
/zcbor-latest/tests/encode/test1_suit/
Dtestcase.yaml2 zcbor.encode.test1_suit.canonical:
4 tags: zcbor encode canonical test1
/zcbor-latest/include/
Dzcbor_encode.h56 * @param[in] input The value to encode.
92 /** Encode a list/map header.
111 /** Encode the end of a list/map. Do some checks and deallocate backup.
132 /** Encode 0 or more elements with the same type and constraints.
158 * To encode the same value multiple times, use a @p input_len of 0.
194 /** Encode a char/uint8_t pointer as a bstr/tstr.
197 * @param[in] str The value to encode. A pointer to the string/array.
214 /** Encode a bstr header.
Dzcbor_common.h308 * That is, for attempting to encode, or especially decode, multiple options.
483 * payload. For some payload lengths, e.g. 25, it's impossible to encode a
/zcbor-latest/tests/unit/test3_float16/
DREADME.md7 python3 floats.py . encode
Dfloats.py44 elif sys.argv[2] == "encode":
/zcbor-latest/
DREADME.md43 The [tests](tests) also demonstrate how to use zcbor in different ways. The [encoding](tests/encode
100 …ing, and always using minimal length encoding (e.g. not using 16 bits to encode a value < 256). En…
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…
177 It then creates code that uses the C library to decode CBOR data into the structs, and/or encode CB…
186 - A header file with declarations for encoding functions (if `--encode`/`-e` is specified)
187 - A C file with encoding functions (if `--encode`/`-e` is specified)
194 …are tests for the code generation in [tests/decode](tests/decode) and [tests/encode](tests/encode).
264 These tests can be found in [tests/decode](tests/decode) and [tests/encode](tests/encode).
481 Path to output C file. If both --decode and --encode
[all …]
DARCHITECTURE.md149 A CodeGenerator object operates in one of two modes: `"encode"` or `"decode"`.
159 …voking CodeGenerator, the user must decide which types it will need direct access to decode/encode.
164 However, if the user instead wants to manually decode/encode such strings, they can add them to `se…
220 …neration can be found in the [tests/decode](tests/decode) and [tests/encode](tests/encode) folders.
DRELEASE_NOTES.md201 * Add new APIs zcbor_uint_(encode/decode)
212 * Port decode/encode/unit tests to new ztest API
286 * tests: Fix an error in manifest3.cddl (encode/test1) (naming collision with 'uri')
321 …* Add zcbor_size_put/encode/decode/expect functions, to allow directly encoding and decoding size_…
378 * Allow using both `--encode` and `--decode` together to generate both at the same time.
/zcbor-latest/samples/hello_world/src/
Dmain.c21 /* Encode a text string into the cbor_payload buffer */ in main()
/zcbor-latest/samples/pet/
DCMakeLists.txt15 --decode --encode # Generate both encoding and decoding code
/zcbor-latest/src/
Dzcbor_encode.c58 /** Encode a single value.
235 /* Encode a dummy header */
338 /* Encode dummy header with max number of elements. */
/zcbor-latest/zcbor/
Dzcbor.py1472 value = self.value.encode("utf-8")
1864 """Class for generating C code that encode/decodes CBOR and validates it according to the CDDL.
2258 """Return the function name and arguments to call to encode/decode this element.
2292 """Return the function name and arguments to call to encode/decode this element."""
2299 """Return the function name and arguments to call to encode/decode the repeated
2376 """Return the full code needed to encode/decode a "LIST" or "MAP" element with children."""
2390 count_arg = f', {str(sum(max_counts))}' if self.mode == 'encode' else ''
2402 """Return the full code needed to encode/decode a "GROUP" element's children."""
2409 """Return the full code needed to encode/decode a "UNION" element's children."""
2454 res_arg = f', &tmp_str' if self.mode == 'encode' \
[all …]
/zcbor-latest/tests/unit/test2_cpp/src/
Dmain.cpp67 printf("Encode error: %d\r\n", zcbor_peek_error(state_e)); in main()
/zcbor-latest/tests/encode/test2_simple/src/
Dmain.c17 /* This test uses generated code to encode a 'Pet' instance. It populates the
/zcbor-latest/tests/unit/test1_unit_tests/src/
Dmain.c699 /* Encode all numbers */ in ZTEST()
819 /* Encode all numbers */ in ZTEST()
/zcbor-latest/tests/scripts/
Dtest_zcbor.py618 self.assertIn(b"error: Please specify at least one of --decode or --encode", stderr1)