Read a byte stream line-by-line
Intended as a replacement for the stdlib's buffered.Reader.line()
where the input is always separated by \r\n
.
see the examples directory.
- Reasonably usable, minimal surprises
- check-then-read, i.e. call
has\_line()
beforeline()
- No partial functions on the primary code-paths
- Avoid memcopy and read iterations over the whole of the input