Files
th4s a2f9897b19 refactor(futures-plex): ringbuffer and slice apis (#83)
* feat(futures-plex): replace BytesMut with fixed-size buffer and add zero-copy APIs

- Remove bytes crate dependency
- Use Box<[u8]> with ptr/len tracking instead of BytesMut
- Add AsyncBufRead implementation for SimplexStream
- Add poll_get, poll_mut, get, get_mut for direct buffer access
- Add advance, advance_mut for cursor management
- Add poll_read_to, poll_write_from for zero-copy transfers
- Add ReadGuard/WriteGuard and poll_lock methods for DuplexStream
- Add unit tests for new functionality

Co-Authored-By: sinu <65924192+sinui0@users.noreply.github.com>

* make it a ring buffer

---------

Co-authored-by: sinu <65924192+sinui0@users.noreply.github.com>
2026-01-07 06:53:18 -08:00
..

futures-plex

Port of tokio's SimplexStream and DuplexStream for the futures ecosystem.

This crate provides in-memory implementations for AsyncRead and AsyncWrite.