Skip to main content

tac_bytes

Function tac_bytes 

Source
pub fn tac_bytes(
    data: &[u8],
    separator: u8,
    before: bool,
    out: &mut impl Write,
) -> Result<()>
Expand description

Reverse records separated by a single byte. Scans for separators with SIMD memchr, then outputs records in reverse order directly from the input buffer. Expects the caller to provide a buffered writer (e.g., BufWriter) for efficient syscall batching.