Crates.io | peekbufread |
lib.rs | peekbufread |
version | 0.2.0 |
source | src |
created_at | 2022-07-24 13:49:31.831554 |
updated_at | 2024-03-14 17:07:05.371516 |
description | Implements a peekable std::io::Read with support for checkpoints |
homepage | |
repository | https://github.com/codefionn/peekbufread |
max_upload_size | |
id | 632005 |
size | 55,223 |
Allows to peek data of abitrary std::io::Read
and comes with supports for
checkpoints. Both features work by buffering parts of the original stream.
This crate is intentionally kept very simple: it only offers the struct PeekRead and nothing on top of it.
git clone https://github.com/codefionn/peekbufread.git
cd peekbufread
cargo test
cargo bench
Allows to peek data without consuming its contents.
Allows the program to forget that data of a stream was already read.
Checkpoint support is optional, but included by default, disable by
peekbufread = { version = "*", default-features = false }
This makes the performance of the crate faster (this issue is currently under investigation).