def cstr.enc

bend-kit-postgres@0.3.0.0 · codec.bend:79

import bend-kit-postgres@0.3.0.0/codec.bend as Codec
import 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))

Uses (3)

Used by (6)