def fe.kind

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

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

770def fe.kind(close: Bool, +k: U32, r: Cur & Bytes.Bytes) -> Cur & Front:
771  match close:
772    case True{}:
773      (c, n) = r
774      (need(Bool.or(U32.is_eq(k, 83), U32.is_eq(k, 80)), c), CloseMsg{k, n})
775    case False{}:
776      (c, n) = r
777      (need(Bool.or(U32.is_eq(k, 83), U32.is_eq(k, 80)), c), Describe{k, n})

Uses (10)

Used by (1)