Skip to main content

tail_start

Function tail_start 

Source
pub fn tail_start(offset: u64, data: &[u8]) -> usize
Expand description

Where a snapshot of data, read from byte offset of the file, starts: right after its first newline when it doesn’t start the file, so the device’s terminal doesn’t open in the middle of an escape sequence or a character; all of it when it starts the file, or has no newline early on.