def feed

bend-kit-redis@0.3.0.0 · redis.bend:651

import bend-kit-redis@0.3.0.0/redis.bend as Redis
import Base
import bend-kit-bytes@0.3.3.0/bytes.bend as Bytes

651# Drops the decoded bytes, then adds chunk.
652# ponytail: a reply split over k reads is decoded from its start k times; keep state per item if huge arrays arrive slowly.
653def feed(r: Reader, chunk: Bytes.Bytes) -> Reader:
654  Reader{buf, +pos} = r
655  feed.at(U32.is_zero(pos), buf, pos, chunk)

Uses (4)

Used by (1)