iowrap
A couple of utilities that I have ended up wanting in various projects,
around std::io::Read streams.
Eofhas aneof()? -> boolto check if the stream is at the end.Poshas anposition() -> u64to find out where you are in a stream.ReadManyadds aread_manytoRead, likeread_exactbut with defined EoF behaviourIgnoreimplementsReadandWriteandSeekand.. and does nothing.ShortReadis an intentionally, controllably naughtyReadfor testing.
Documentation
Please read the iowrap documentation on docs.rs.
License
MIT or Apache 2.0.