Skip to main content

Module tac

Module tac 

Source

Functions§

tac_bytes
Reverse records separated by a single byte. Uses forward SIMD scan (memchr_iter) to collect separator positions, then builds IoSlice references in reverse order for zero-copy writev output. No output buffer allocation — references mmap’d data directly.
tac_regex_separator
Reverse records using a regex separator.
tac_string_separator
Reverse records using a multi-byte string separator. Uses SIMD-accelerated memmem for substring search + IoSlice/writev output.