acc_reader 2.0.0

A wrapper for std::io::Read providing std::io::Seek
Documentation
  • Coverage
  • 100%
    9 out of 9 items documented6 out of 6 items with examples
  • Size
  • Source code size: 28.99 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.8 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 9s Average build duration of successful builds.
  • all releases: 9s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Documentation
  • netvl/acc_reader
    3 0 1
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • netvl

acc_reader, a seekable wrapper for input streams

Build Status crates.io

Documentation

acc_reader provides AccReader, a struct which wraps an arbitrary instance of std::io::Read and provides an implementation of std::io::Seek for it. Naturally, this involves internal buffering, therefore AccReader also provides std::io::BufRead interface, though its read() method does not use this buffering. If/when specialization gets available in Rust, this could change.

See AccReader documentation for more information and examples.

Usage

Just add a dependency in your Cargo.toml:

[dependencies]
acc_reader = "2.0"

Changelog

Version 2.0.0

Changed "beyond the end of stream" seek error kind to UnexpectedEof. This is a breaking change.

Version 1.0.0

Initial release

License

This program is licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.