peeky-read

Crates.iopeeky-read
lib.rspeeky-read
version0.1.0
sourcesrc
created_at2017-06-27 10:39:18.789718
updated_at2017-06-27 10:39:18.789718
descriptionPeek into an io::Read and see if we're at the EOF
homepage
repositoryhttps://github.com/FauxFaux/peeky-read
max_upload_size
id20913
size5,006
Chris West (FauxFaux)

documentation

README

peeky-read

A single-struct library providing PeekyRead.

PeekyRead takes ownership of an io::Read, and provides a check_eof() -> io::Result<bool>.

This is accomplished by actually reading a single byte from the underlying reader. The byte is stored, and returned automatically by the next read(), so nothing is lost, and the transition should be transparent.

Commit count: 5

cargo fmt