Skip to content

Commit

Permalink
Edit.
Browse files Browse the repository at this point in the history
  • Loading branch information
SamiPerttu committed May 2, 2024
1 parent 89ff521 commit d87dffe
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/shared.rs
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,12 @@ impl AtomicTable {
}
Self { table }
}
/// Length of the table.
#[inline]
#[allow(clippy::len_without_is_empty)]
pub fn len(&self) -> usize {
self.table.len()
}
/// Read sample at index `i`.
#[inline]
pub fn at(&self, i: usize) -> f32 {
Expand Down

0 comments on commit d87dffe

Please sign in to comment.