Replies: 1 comment 2 replies
-
Take a glance at this example: https://github.com/sharksforarms/deku/blob/master/examples/deku_input.rs |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a struct that ends with a checksum of previous data.
I want to implement a custom writer for that field.
How can I gain in the writer access to the bytes that were already written?
In the past I did it and used
deku::output
but it seems the writer syntax has changed and now there is adeku::writer
which doesn't seem to provide access to written bytes.So how can I achieve something like that? It's pretty common in many binary protocols I've seen.
Beta Was this translation helpful? Give feedback.
All reactions