Skip to content

FauxFaux/iowrap-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Small helpers for Rust's io::Read and io::Write

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages