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. For large data (>= 8MB): parallel chunk-local reversal with contiguous buffers. For small data: single-threaded forward SIMD scan + contiguous output buffer.