Skip to content

Commit

Permalink
bitset iterate
Browse files Browse the repository at this point in the history
  • Loading branch information
lwwmanning committed Jan 22, 2024
1 parent 62b9b9d commit 8b702da
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/roaring.zig
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,10 @@ pub const Bitset = extern struct {
pub fn maximum(self: *const Bitset) usize {
return c.bitset_maximum(conv(self));
}

pub fn iterate(self: *const Bitset, iter: c.bitset_iterator, arg: ?*anyopaque) bool {
return c.bitset_for_each(conv(self), iter, arg);
}
};

/// This struct reimplements CRoaring's roaring_bitmap_t type
Expand Down

0 comments on commit 8b702da

Please sign in to comment.