You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Document the optional streaming encode entrypoints and the --stream-encode-functions codegen option.
Update the architecture overview to mention the generated provider structs and streaming entrypoints.
Copy file name to clipboardExpand all lines: ARCHITECTURE.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -175,6 +175,8 @@ There are up to 4 files constructed:
175
175
- The H file with all the struct definitions (the type file). If both decoding and encoding files are generated for the same CDDL, they can share the same type file.
176
176
- An optional cmake file for building the generated code together with the zcbor C libraries.
177
177
178
+
When `zcbor code` is invoked with `--stream-encode-functions`, CodeRenderer also emits streaming encode entrypoints (`cbor_stream_encode_<type>`) and the associated provider structs used to supply repeated elements and chunked `tstr` values.
179
+
178
180
CodeRenderer conducts some pruning and deduplication of the list of types and functions received from CodeGenerator.
0 commit comments