def octets

bend-kit-postgres@0.3.0.0 · scram.bend:136

import bend-kit-postgres@0.3.0.0/scram.bend as Scram
import Base
import bend-kit-bytes@0.3.3.0/bytes.bend as Bytes

136def octets(r: Result<&1, &1, U32 & String, U32 & Array<U32>>) -> Result<&1, &1, U32 & String, String>:
137  match r:
138    case Fail{e}:
139      Fail{e}
140    case Done{(len, buf)}:
141      Done{Bytes.to_string(Bytes.Bytes{len, buf})}

Uses (8)

Used by (3)