Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Changelog

## Unreleased
- Prevent panic in `DacsByte::len` by handling empty level lists gracefully.
- Embedded section handles in `BitVectorData` and added `BitVectorDataMeta` with
`Serializable` support for both `BitVectorData` and `BitVector`, enabling
zero-copy reconstruction from arena metadata.
Expand Down
1 change: 1 addition & 0 deletions INVENTORY.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,4 @@
## Discovered Issues
- `katex.html` performs manual string replacements; consider DOM-based manipulation.
- Revisit zero-copy storage strategy: avoid extra copies when storing serialized bytes in structures.
- Enforce that `DacsByte` always retains at least one level instead of relying on defensive length checks.
2 changes: 1 addition & 1 deletion src/int_vectors/dacs_byte.rs
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ impl<I: BitVectorIndex> DacsByte<I> {
/// Gets the number of integers.
#[inline(always)]
pub fn len(&self) -> usize {
self.data[0].len()
self.data.first().map_or(0, |lvl| lvl.len())
}

/// Checks if the vector is empty.
Expand Down
Loading