type Cur
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
258# The buffer, the next byte i, the end e of the message body (e <= len), and whether every read so far fit.
259# A read that does not fit clears ok and leaves i; the message is Bad unless ok holds and i reaches e.
260type Cur is Type:
261 Cur{b: Bytes.Bytes, i: U32, e: U32, ok: Bool}