def feed
import bend-kit-multipart@0.3.0.0/multipart.bend as Multipartimport Base
import bend-kit-bytes@0.3.3.0/bytes.bend as Bytes
611# The next chunk of a body, in any split. Answers the decoder and the items the chunk completes,
612# or the first error. A body piece is held back only while it could start a delimiter.
613def feed(d: Dec, chunk: Bytes.Bytes) -> Result<&1, &1, String, Dec & List<&1, Item>>:
614 Dec{+delim, +dlen, st, buf} = d
615 feed.go(delim, dlen, st, Bytes.length(Bytes.append(buf, chunk)))