def frame

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

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

87# A tagged message: the tag byte, the int32 length (counting itself), then the body.
88def frame(+tag: U32, body: Bytes.Bytes) -> Bytes.Bytes:
89  frame.of(tag, Bytes.length(body))

Uses (4)

Used by (3)