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

#811 in Data structures

Download history 2409/week @ 2024-02-26 2060/week @ 2024-03-04 2044/week @ 2024-03-11 2803/week @ 2024-03-18 1616/week @ 2024-03-25 2263/week @ 2024-04-01 2537/week @ 2024-04-08 2996/week @ 2024-04-15 1461/week @ 2024-04-22 1075/week @ 2024-04-29 1706/week @ 2024-05-06 1410/week @ 2024-05-13 1122/week @ 2024-05-20 904/week @ 2024-05-27 1464/week @ 2024-06-03 1552/week @ 2024-06-10

5,093 downloads per month
Used in 31 crates (5 directly)

MIT/Apache

26KB
586 lines

iowrap

CI

A couple of utilities that I have ended up wanting in various projects, around std::io::Read streams.

  • Eof has an eof()? -> bool to check if the stream is at the end.
  • Pos has an position() -> u64 to find out where you are in a stream.
  • ReadMany adds a read_many to Read, like read_exact but with defined EoF behaviour
  • Ignore implements Read and Write and Seek and.. and does nothing.
  • ShortRead is an intentionally, controllably naughty Read 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

~170–315KB