Crates.io | circularbuf |
lib.rs | circularbuf |
version | 0.1.0 |
created_at | 2025-03-05 08:19:26.020122+00 |
updated_at | 2025-03-05 08:19:26.020122+00 |
description | Rust fixed size circular (ring) buffer |
homepage | https://github.com/al8n/circularbuf |
repository | https://github.com/al8n/circularbuf |
max_upload_size | |
id | 1578485 |
size | 52,549 |
[dependencies]
circularbuf = "0.1"
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");
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.