Searched full:encode (Results 1 – 19 of 19) sorted by relevance
| /zcbor-latest/tests/encode/test2_simple/ |
| D | testcase.yaml | 2 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/ |
| D | testcase.yaml | 2 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/ |
| D | testcase.yaml | 2 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/ |
| D | testcase.yaml | 2 zcbor.encode.test1_suit.canonical: 4 tags: zcbor encode canonical test1
|
| /zcbor-latest/include/ |
| D | zcbor_encode.h | 56 * @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.
|
| D | zcbor_common.h | 308 * 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/ |
| D | README.md | 7 python3 floats.py . encode
|
| D | floats.py | 44 elif sys.argv[2] == "encode":
|
| /zcbor-latest/ |
| D | README.md | 43 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 …]
|
| D | ARCHITECTURE.md | 149 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.
|
| D | RELEASE_NOTES.md | 201 * 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/ |
| D | main.c | 21 /* Encode a text string into the cbor_payload buffer */ in main()
|
| /zcbor-latest/samples/pet/ |
| D | CMakeLists.txt | 15 --decode --encode # Generate both encoding and decoding code
|
| /zcbor-latest/src/ |
| D | zcbor_encode.c | 58 /** Encode a single value. 235 /* Encode a dummy header */ 338 /* Encode dummy header with max number of elements. */
|
| /zcbor-latest/zcbor/ |
| D | zcbor.py | 1472 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/ |
| D | main.cpp | 67 printf("Encode error: %d\r\n", zcbor_peek_error(state_e)); in main()
|
| /zcbor-latest/tests/encode/test2_simple/src/ |
| D | main.c | 17 /* This test uses generated code to encode a 'Pet' instance. It populates the
|
| /zcbor-latest/tests/unit/test1_unit_tests/src/ |
| D | main.c | 699 /* Encode all numbers */ in ZTEST() 819 /* Encode all numbers */ in ZTEST()
|
| /zcbor-latest/tests/scripts/ |
| D | test_zcbor.py | 618 self.assertIn(b"error: Please specify at least one of --decode or --encode", stderr1)
|