fastbuf 0.44.0

single-thread-oriented very fast byte buffer
Documentation

FastBuf

Documentation crates.io

single-thread-oriented very fast byte buffer

use fastbuf::{Buffer, WriteBuf, ReadBuf, Chunk};
let mut buffer: Buffer<[u8; 100]> = Buffer::new();
buffer.write(&[0; 100]);
let read: &[u8] = buffer.read(100);