rbi

Crates.iorbi
lib.rsrbi
version0.1.1
sourcesrc
created_at2022-04-27 15:35:23.899927
updated_at2022-04-27 15:53:10.245789
descriptionA FIFO index queue that can be used for implementing a ring buffer.
homepagehttps://github.com/future-proof-iot/RIOT-rs
repository
max_upload_size
id576093
size7,405
smithy-rs-server (github:awslabs:smithy-rs-server)

documentation

README

About

This library is part of RIOT-rs.

This module provides a FIFO index queue that can be used for implementing a ring buffer. It works in no_std settings.

It keeps track of indexes from 0..N (with N being a power of two).

put() marks an index "used".

get() returns an indexe that has been put() (if any) and marks it unused.

peek() returns the index that get() would return next (if any) without marking it unused.

All operations are O(1).

Commit count: 0

cargo fmt