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. Uses forward SIMD scan (memchr_iter) to collect all separator positions, then fills output buffer in reverse order with parallel copy for large data. Single write_all at the end for minimum syscall overhead.