def cstr
import bend-kit-postgres@0.3.0.0/codec.bend as Codecimport Base
import bend-kit-bytes@0.3.3.0/bytes.bend as Bytes
336# The bytes before the next NUL inside the body, and the cursor past it.
337def cstr(c: Cur) -> Cur & Bytes.Bytes:
338 Cur{b, +i, +e, +ok} = c
339 cstr.at(i, e, ok, Bytes.find.from(b, nul(), i))