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 a single forward SIMD scan to collect all separator positions, then builds IoSlice references in reverse order for zero-copy output. Eliminates per-record memrchr calls AND the copy to an output buffer.