Skip to main content

read_window

Function read_window 

Source
fn read_window(
    r: &SnapshotReader<'_>,
    zone: &str,
    complete_end: i64,
    want: i64,
) -> Result<Option<Vec<(i64, String)>>, StoreError>
Expand description

The newest want bytes (the newest line always) of the complete lines in [0, complete_end), with the non-blank lines in them and each one’s byte offset. None when the bytes aren’t all stored or the newest line is larger than MAX_WINDOW_BYTES.