Skip to content

A seekable wrapper for input streams in Rust

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

netvl/acc_reader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

acc_reader, a seekable wrapper for input streams

Build Status crates.io docs

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.


Note: because I no longer have capacity to support it, I'm now looking for a new maintainer for this library. Until I'm able to find one, it is unlikely to receive new updates in any reasonably timely manner.


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.

About

A seekable wrapper for input streams in Rust

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Packages

No packages published

Languages