def octets
import bend-kit-postgres@0.3.0.0/scram.bend as Scramimport 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})}