Searched full:decode (Results 1 – 25 of 28) sorted by relevance
12
| /zcbor-latest/tests/decode/test5_corner_cases/ |
| D | testcase.yaml | 2 zcbor.decode.test5_corner_cases: 4 tags: zcbor decode test5 6 zcbor.decode.test5_corner_cases.indefinite_length_arrays: 8 tags: zcbor decode test5 indefinite
|
| D | CMakeLists.txt | 66 --decode
|
| /zcbor-latest/tests/decode/test9_manifest14/ |
| D | testcase.yaml | 2 zcbor.decode.test9_manifest14: 4 tags: zcbor decode manifest14 test9 7 tags: zcbor decode manifest16 test9 canonical
|
| /zcbor-latest/tests/decode/test8_suit12/ |
| D | testcase.yaml | 2 zcbor.decode.test8_suit12: 4 tags: zcbor decode test8
|
| /zcbor-latest/tests/decode/test7_suit9_simple/ |
| D | testcase.yaml | 2 zcbor.decode.test7_suit9_simple: 4 tags: zcbor decode test7
|
| /zcbor-latest/tests/decode/test1_suit_old_formats/ |
| D | testcase.yaml | 2 zcbor.decode.test1_suit_old_formats: 4 tags: zcbor decode test1
|
| D | CMakeLists.txt | 21 --decode 33 --decode
|
| /zcbor-latest/tests/decode/test2_suit/ |
| D | testcase.yaml | 2 zcbor.decode.test2_suit: 4 tags: zcbor decode test2
|
| /zcbor-latest/tests/decode/test3_simple/ |
| D | testcase.yaml | 2 zcbor.decode.test3_simple: 4 tags: zcbor decode test3
|
| /zcbor-latest/scripts/ |
| D | add_helptext.py | 35 assert b"options:" in stdout, f"Seems like something went wrong: {stdout.decode('utf-8')}" 41 {stdout.decode('utf-8')}
|
| /zcbor-latest/ |
| D | ARCHITECTURE.md | 107 Or they can decode binary CBOR and write python code to inspect it, or just convert it back into YA… 149 A CodeGenerator object operates in one of two modes: `"encode"` or `"decode"`. 159 When invoking CodeGenerator, the user must decide which types it will need direct access to decode/… 164 However, if the user instead wants to manually decode/encode such strings, they can add them to `se… 202 In these cases, the code attempts to decode the object. If it fails, it restores the state to befor… 220 The C tests for the code generation can be found in the [tests/decode](tests/decode) and [tests/enc…
|
| D | README.md | 28 - Decode and validate incoming CBOR data into human-readable YAML/JSON. 43 … zcbor in different ways. The [encoding](tests/encode), [decoding](tests/decode), and [unit](tests… 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… 184 - A header file with declarations for decoding functions (if `--decode`/`-d` is specified) 185 - A C file with decoding functions (if `--decode`/`-d` is specified) 194 There are tests for the code generation in [tests/decode](tests/decode) and [tests/encode](tests/en… 205 This is demonstrated in the tests, e.g. at [tests/decode/test3_simple/CMakeLists.txt](tests/decode/… 264 These tests can be found in [tests/decode](tests/decode) and [tests/encode](tests/encode). [all …]
|
| D | RELEASE_NOTES.md | 201 * Add new APIs zcbor_uint_(encode/decode) 212 * Port decode/encode/unit tests to new ztest API 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. 416 * decode: Remove test4 since it hasn't been used or updated.
|
| /zcbor-latest/tests/unit/test3_float16/ |
| D | README.md | 3 python3 floats.py . decode
|
| D | floats.py | 42 elif sys.argv[2] == "decode":
|
| /zcbor-latest/tests/scripts/ |
| D | test_versions.py | 26 stdout=PIPE).communicate()[0].decode("utf-8").strip() 53 tags = tags_stdout.decode("utf-8").strip().splitlines()
|
| D | test_repo_files.py | 69 self.assertEqual(exp_retcode, call0.returncode, stderr0.decode('utf-8')) 94 output_run += output.decode('utf-8') 134 remote_tracking = run(remote_tr_args, capture_output=True).stdout.decode('utf-8').strip() 139 repo_url = check_output(repo_url_args).decode('utf-8').strip().strip('.git')
|
| D | test_zcbor.py | 558 self.assertEqual(exp_retcode, call0.returncode, stderr0.decode('utf-8')) 592 self.assertEqual(sub(r"\W+", "", f.read()), sub(r"\W+", "", stdout4.decode("utf-8"))) 618 self.assertIn(b"error: Please specify at least one of --decode or --encode", stderr1)
|
| /zcbor-latest/tests/unit/test2_cpp/src/ |
| D | main.cpp | 104 printf("Decode error: %d\r\n", zcbor_peek_error(state_d)); in main() 117 printf("Decode error: %d\r\n", int_ret); in main()
|
| /zcbor-latest/zcbor/ |
| D | zcbor.py | 173 return "result" if mode == "decode" else "input" 1310 This is relevant because it allows the decoder to directly decode the integer into an enum 1376 Decode and validate CBOR into Python structures to be able to make Python scripts that 1419 f"Data did not decode correctly {'(' + msg + ')' if msg else ''}") 1467 """Check that the decode value conforms to the restrictions in the CDDL.""" 1588 """Decode single CDDL value, excluding repetitions""" 1629 """Decode key and value in the form of a KeyTuple""" 1639 """Decode single CDDL value, excluding repetitions. 1688 """Decode single CDDL value, with repetitions. 2195 return "float16_32" if self.mode == "decode" else "float32" [all …]
|
| /zcbor-latest/samples/hello_world/src/ |
| D | main.c | 32 /* Decode the text string into the cbor_payload buffer */ in main()
|
| /zcbor-latest/samples/pet/ |
| D | README.md | 4 This sample uses zcbor-generated code to decode 3 instances of a data
|
| D | CMakeLists.txt | 15 --decode --encode # Generate both encoding and decoding code
|
| /zcbor-latest/include/ |
| D | zcbor_decode.h | 140 /** Decode and consume a list/map header. 275 /** Decode 0 or more elements with the same type and constraints. 302 * To decode the same value multiple times, use a @p result_len of 0. 332 /** Attempt to decode a value that might not be present in the data. 371 /** Decode and consume a bstr header. 417 /** Decode and consume a bstr header, assuming the payload does not contain the whole bstr.
|
| D | zcbor_common.h | 111 /* This is the "decode state", the part of zcbor_state_t that is only used by zcbor_decode.c. */ 263 #define ZCBOR_FLAG_KEEP_DECODE_STATE 8UL ///! Keep the pre-restore decode state (everything only us… 308 * That is, for attempting to encode, or especially decode, multiple options.
|
12