Skip to main content

entry_id

Function entry_id 

Source
pub fn entry_id(object_seq: u64, position: u64) -> EntryId
Expand description

Returns the id of the entry at position among the entries of its region in the object object_seq.

Ids are object-sequence-major: entry_id >> 20 names the object that holds the entry, and the low bits are its position in that object, which starts at one so that id zero, the watermark of a region without entries, is never assigned. A region’s ids increase with the object sequence and have gaps wherever other regions or other positions took the sequence.