pub fn fetch_entry_indexes_before(
        &self,
        gate: FileSeq,
        vec_idx: &mut Vec<EntryIndex>,
    ) -> Result<()> {
        if let Some((first, last)) = self.span() {
            let mut i = self.rewrite_count;
            while first + i as u64 <= last && self.entry_indexes[i].entries.unwrap().id.seq <= gate
            {
                vec_idx.push(EntryIndex::from_thin(
                    first + i as u64,
                    self.entry_indexes[i],
                ));
                i += 1;
            }
        }
        Ok(())
    }
/// Pulls all append entries older than or equal to `gate`, to the provided
/// buffer.
Pulls all append entries older than or equal to `gate`, to the provided
buffer.
Pulls all append entries older than or equal to ` gate ` to the provided buffer .
pub fn fetch_entry_indexes_before(
        &self,
        gate: FileSeq,
        vec_idx: &mut Vec<EntryIndex>,
    ) -> Result<()> {
        if let Some((first, last)) = self.span() {
            let mut i = self.rewrite_count;
            while first + i as u64 <= last && self.entry_indexes[i].entries.unwrap().id.seq <= gate
            {
                vec_idx.push(EntryIndex::from_thin(
                    first + i as u64,
                    self.entry_indexes[i],
                ));
                i += 1;
            }
        }
        Ok(())
    }
pub fn fetch_entry_indexes_before ( & self , gate : FileSeq , vec_idx : & mut Vec < EntryIndex > , ) -> Result < ( ) > { if let Some ( ( first , last ) ) = self . span ( ) { let mut i = self . rewrite_count ; while first + i as u64 <= last && self . entry_indexes [ i ] . entries . unwrap ( ) . id . seq <= gate { vec_idx . push ( EntryIndex :: from_thin ( first + i as u64 , self . entry_indexes [ i ] , ) ) ; i += 1 ; } } Ok ( ( ) ) }
Pulls all append entries older than or equal to `gate`, to the provided
buffer.
Pulls all append entries older than or equal to ` gate ` to the provided buffer .
&self
gate
FileSeq
vec_idx
&mut Vec<EntryIndex>