iowrap
A couple of utilities that I have ended up wanting in various projects,
around std::io::Read
streams.
Eof
has aneof()? -> bool
to check if the stream is at the end.Pos
has anposition() -> u64
to find out where you are in a stream.ReadMany
adds aread_many
toRead
, likeread_exact
but with defined EoF behaviourIgnore
implementsRead
andWrite
andSeek
and.. and does nothing.ShortRead
is an intentionally, controllably naughtyRead
for testing.
Documentation
Please read the iowrap documentation on docs.rs.
License
Don't care. It's listed as MIT
but do tell me if that's inconvenient.