def fields.enc

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

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

172def fields.enc(xs: List<&1, Field>) -> List<&1, Bytes.Bytes>:
173  match xs:
174    case Nil{}:
175      Nil{}
176    case Con{Field{n, +tb, +col, +oid, +sz, +md, +fmt}, t}:
177      Con{Bytes.concat([cstr.enc(n), be32(tb), be16(col), be32(oid), be16(sz), be32(md), be16(fmt)]), fields.enc(t)}

Uses (7)

Used by (1)