Skip to content

Add an example writer#327

Open
sjlongland wants to merge 6 commits intointel:devfrom
widesky:feature/WSHUB-455-chunked-codec-writer
Open

Add an example writer#327
sjlongland wants to merge 6 commits intointel:devfrom
widesky:feature/WSHUB-455-chunked-codec-writer

Conversation

@sjlongland
Copy link
Copy Markdown

This provides an example implementation of the abstract writer interface using low-level file I/O as a demonstration.

Describe the input parameters for the function and how they are used as
best we understand from on-paper analysis of the C code.
What is not known, is what the significance is of
`CborEncoderAppendType`.  It basically tells the writer the nature of
the data being written, but the default implementation ignores this and
just blindly appends it no matter what.

That raises the question of why it's important enough that the writer
function needs to know about it.
Not 100% sure of the syntax for documenting struct-members outside of
the struct as I'm too used to doing it inline, hopefully this works as
expected. :-)
@sjlongland
Copy link
Copy Markdown
Author

We can merge this into #208 if desired, I created the separate branch expecting there'd be more, but it looks like nearly all the work was on the parser end.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant