Skip to main content

tac_string_separator

Function tac_string_separator 

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

Reverse records using a multi-byte string separator. Uses backward SIMD-accelerated memmem (FinderRev) + IoSlice zero-copy output.

For single-byte separators, delegates to tac_bytes which uses memchr (faster). Pre-counts separators to right-size the IoSlice Vec.