def dec.push
bend-kit-zlib@0.5.1.0 · zlib.bend:1115
import bend-kit-zlib@0.5.1.0/zlib.bend as Zlib
import Base
import bend-kit-bytes@0.3.3.0/bytes.bend as Bytes
1115
1116def dec.push(d: Decoder, max: U32, b: Bytes.Bytes) ->
1117 IO(Decoder & Result<&1, &1, U32 & String, Bytes.Bytes>):
1118 Decoder{+id} = d
1119 Bytes.Bytes{+len, buf} = b
1120 do IO<Decoder & Result<&1, &1, U32 & String, Bytes.Bytes>>:
1121 r : Result<&1, &1, U32 & String, U32 & Array<U32>> <- dec.feed(id, max, len, buf)
1122 return (Decoder{id}, words.got(r))