Skip to main content

head_prefix_resume_seek

Function head_prefix_resume_seek 

Source
pub fn head_prefix_resume_seek(
    prefix: &[u8],
    start_after_term: Option<&[u8]>,
) -> Option<Vec<u8>>
Expand description

Seek key that starts (or resumes) the walk of one normalized head prefix, given the exclusive encoded-start_after_term resume cursor.

None means the prefix contributes nothing: either its whole key range sorts strictly below the cursor (it was drained by earlier pages of the same prefix list), or the cursor sits at the end of the byte space inside this prefix (byte_successor overflow). A cursor inside the prefix’s range resumes exclusively past the cursor bytes; the successor seek may leave the range, which the backend’s starts_with(prefix) loop check then treats as an exhausted prefix.