Skip to main content

obj_count_index_range

Function obj_count_index_range 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn obj_count_index_range( txn: *mut obj_read_txn_t, collection: *const c_char, index_name: *const c_char, lower: *const u8, lower_len: usize, lower_inclusive: bool, upper: *const u8, upper_len: usize, upper_inclusive: bool, out_count: *mut u64, ) -> obj_error_t
Expand description

Count index B-tree entries inside [lower, upper]. Bounds use the same (ptr, len, inclusive) shape as obj_iter_index_range.

ยงSafety

As obj_iter_index_range plus out_count writable.