Skip to content

Rust da14531#1826

Draft
benma wants to merge 5 commits intoBitBoxSwiss:masterfrom
benma:rust-da14531
Draft

Rust da14531#1826
benma wants to merge 5 commits intoBitBoxSwiss:masterfrom
benma:rust-da14531

Conversation

@benma
Copy link
Collaborator

@benma benma commented Feb 27, 2026

No description provided.

Trivial wrapper around `VecDequeue`, with methods and C API matching
the asf4 utils_ringbuffer.h. With a similar API, we can replace all
uses of it easily.

The C ringbuffer was fixed size and not heap allocated, and
`VecDequeue` is dynamic and heap allocated. We simply panic once we go
above the "fixed" size to avoid filling up the whole RAM in case of a bug.
When length is 0. The as_ref/as_mut functions already explicitly
handle this.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant