-
-
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
Cool, looks like my DNS finally rolled over and my blog is enabled again on my regular domain. Post now lives here:https://blog.yoshuawuyts.com/byte-ordered-stream-parsing/ …
Show this threadThanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
A bit late to this party but have you looked at scroll at all? I love it for parsing binary formats, especially when the task is "parse the format as defined by these C structs". With its proc macro derive it's really wonderful in practice: https://docs.rs/scroll/0.10.1/scroll/ …
-
I hadnt't seen it before; thanks for sharing!
End of conversation
New conversation -
-
-
In this example you used the name "buf" in the declaration but "file" in the usage, also you need to borrow the .to_le_bytes() as it returns a [u8; 2] not an &[u8] (I only caught this because I've been writing a lot of code doing the exact same thing recently :P)pic.twitter.com/ryk8IaOCV9
-
Which, to add, I personally have wanted something like this in the stdlib since the day I started rust, definitely a worthwhile addition.
- 1 more reply
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.