pub fn count_lines(payload: &[u8]) -> usizeAvailable on (crate features
worker-pool or worker-batch or worker) and crate feature worker-batch only.Expand description
Count the number of NDJSON lines in a payload without allocating.
Useful for pre-sizing buffers before splitting.