def next
import bend-kit-csv@0.3.0.0/csv.bend as Csvimport Base
import bend-kit-bytes@0.3.3.0/bytes.bend as Bytes
197# The next record, End at the end of input, or Bad with the offset of the first bad byte.
198def next(c: Cur) -> Next:
199 Cur{Bytes.Bytes{+len, buf}, +at} = c
200 next.if(U32.is_lt(at, len), len, buf, at)