def text.hold

bend-kit-multipart@0.3.0.0 · multipart.bend:537

import bend-kit-multipart@0.3.0.0/multipart.bend as Multipart
import Base
import bend-kit-bytes@0.3.3.0/bytes.bend as Bytes

537# A match whose suffix has not arrived: the bytes before it go out, and it waits.
538def text.hold(+i: U32, r: Bytes.Bytes & Bytes.Bytes, out: List<&1, Item>) -> Step:
539  (buf, piece) = r
540  Pause{Content{}, drop(buf, i), emit(U32.is_eq(i, 0), piece, out)}

Uses (11)

Used by (1)