circularbuf

Crates.iocircularbuf
lib.rscircularbuf
version0.1.0
created_at2025-03-05 08:19:26.020122+00
updated_at2025-03-05 08:19:26.020122+00
descriptionRust fixed size circular (ring) buffer
homepagehttps://github.com/al8n/circularbuf
repositoryhttps://github.com/al8n/circularbuf
max_upload_size
id1578485
size52,549
Al Liu (al8n)

documentation

https://docs.rs/circularbuf

README

circularbuf

Rust fixed size circular (ring) buffer

github LoC Build codecov

docs.rs crates.io crates.io license

Installation

[dependencies]
circularbuf = "0.1"

Example

use circularbuf::Buffer;

let mut buf = Buffer::new([0u8; 6]);
buf.write(b"hello world");

assert_eq!(buf.read_to_bytes().as_ref(), b" world");

License

circularbuf is under the terms of both the MIT license and the Apache License (Version 2.0).

See LICENSE-APACHE, LICENSE-MIT for details.

Copyright (c) 2025 Al Liu.

Copyright (c) 2013 Armon Dadgar.

Commit count: 2

cargo fmt