Replies: 1 comment
-
You can add arguments to the struct using |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Let's say I've got a struct that looks like this:
How would I go about setting
length
for the purposes ofBinRead
if it can vary at runtime according to external conditions (say the program's state) rather than in relation to any of the other fields ofMyPacket
?I can't make use of something like
until_eof
helper because this is part of a stream.Beta Was this translation helpful? Give feedback.
All reactions