Skip to content
Effect 4.0 is here. One ecosystem. Zero dependencies.

Search unstable

Low-level byte search used by the multipart parser.

1 exports Since v4.0.0 Source

Constructors

make

unstable
Since v4.0.0

Creates an incremental byte search for a string boundary.

Signature

declare const make: (needle: string, callback: (index: number, chunk: Uint8Array) => void) => {
readonly end: () => void;
readonly write: (chunk: Uint8Array) => void;
}