5 releases
0.2.1 | Sep 19, 2022 |
---|---|
0.2.0 | Jan 20, 2019 |
0.1.2 | Feb 18, 2018 |
0.1.1 | Nov 15, 2017 |
0.1.0 | Nov 15, 2017 |
#629 in Data structures
4,940 downloads per month
Used in 31 crates
(5 directly)
26KB
586 lines
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
MIT or Apache 2.0
.
lib.rs
:
Some utility methods for wrapping std::io::Read
and std::io::Write
.
Dependencies
~250KB