def cstr.enc
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
79# ponytail: a NUL inside a cstr field ends it early; the message length still frames it, so the server rejects that message only.
80def cstr.enc(b: Bytes.Bytes) -> Bytes.Bytes:
81 Bytes.append(b, Bytes.new(1))