Okay so I suspect the fill_ methods I wrote are actually useless and probably broken. If you call them repeatedly the underlying will quietly buffer more and more data. read_{while,until,exact,be,let,ne} provide most value. Wondering if we should perhaps make Seek easier?
-
Show this thread
-
In order to use the Seek trait you need to understand several tricks to use the SeekFrom enum. SeekFrom::End — seek from the end SeekFrom::Current — seek relative to curr position SeekFrom::Start — seek from start How do you rewind to 10 bytes before curr? No negative indexing!
1 reply 0 retweets 1 likeShow this thread
Would be cool if there were methods to: - seek backwards from curr position - seek forward from curr position - seek to start - seek forward from start - seek to end - seek backwards from end The single "do it all" method is great, but shorthands w/ fewer imports would be nice.
8:27 AM - 8 Dec 2019
from Taito-ku, Tokyo
0 replies
0 retweets
1 like
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.