Skip to content

Commit

Permalink
pretty well
Browse files Browse the repository at this point in the history
  • Loading branch information
JieningYu committed Feb 19, 2024
1 parent 8aede81 commit 00bfb39
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions crates/util/packed-int-array/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,24 @@ impl PackedIntArray {
}
}
}

/// Gets `elements_per_long` value of this array.
#[inline]
pub fn elements_per_long(&self) -> usize {
self.elements_per_long
}

/// Gets `max` value of this array.
#[inline]
pub fn max(&self) -> u64 {
self.max
}

/// Gets `element_bits` value of this array.
#[inline]
pub fn element_bits(&self) -> usize {
self.element_bits
}
}

impl IntoIterator for PackedIntArray {
Expand Down

0 comments on commit 00bfb39

Please sign in to comment.