buf_redux icon indicating copy to clipboard operation
buf_redux copied to clipboard

A drop-in replacement for Rust's std::io::BufReader, with extra features

Results 12 buf_redux issues
Sort by recently updated
recently updated
newest added

In these functions you use the unsafe keyword for some safe expressions. However, I found that only 3 functions are real unsafe operations (see the list below). We need to...

These changes make it possible to pause/resume reading. It could be useful in case when we are passing a buffer reader forward and are losing control of it, but still,...

``` ---- ringbuf_tests::test_buffer_new stdout ---- thread 'ringbuf_tests::test_buffer_new' panicked at 'assertion failed: `(left == right)` left: `65536`, right: `8192`', src/ringbuf_tests.rs:44:5 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace. ----...

These methods enable users to use `Buffer` without having an intermediate array. For example: ``` let mut buffer = Buffer::with_capacity(1024); buffer.resize(1024, 0); let len = fill_some_data(buffer.buf_mut()); buffer.truncate(len); ```

When enabling the nightly feature I get these errors ``` error[E0432]: unresolved import `policy::MoveStrategy` --> /Users/dignifiedquire/.cargo/registry/src/github.com-1ecc6299db9ec823/buf_redux-0.8.1/src/nightly.rs:16:28 | 16 | use policy::{WriterPolicy, MoveStrategy, ReaderPolicy}; | ^^^^^^^^^^^^ no `MoveStrategy` in `policy` error[E0658]:...

I have a web client rust app that needs stdweb crate which uses 'cargo web build' subcommand. Also the app dependency chain needs buf_redux crate. The 'cargo web build' causes...

I am looking into using seeking quite a bit and was wondering if it was possible to upgrade the seeking implementation like it is done here: https://github.com/gcarq/seek_bufread the stdlib will...

`rustc --version`: rustc 1.69.0-nightly (c18a5e8a5 2023-01-25) `cargo report future-incompatibilities --package [email protected]` after a build: ``` warning: trailing semicolon in macro used in expression position --> /home/ltrlg/.cargo/registry/src/github.com-1ecc6299db9ec823/buf_redux-0.8.4/src/policy.rs:25:57 | 25 | ($val:expr)...