Skip to main content

Module streaming

Module streaming 

Source
Expand description

Streaming (chunk-based) tokenizer — see crate::streaming::StreamTokenizer. Streaming (chunk-based) tokenizer.

StreamTokenizer processes input in arbitrary-sized chunks, carrying state across chunk boundaries. This enables parsing large files or network streams without loading the entire document into memory.

Structs§

StreamTokenizer
A streaming tokenizer that processes input chunk by chunk.

Constants§

MAX_RAW_TEXT_RESIDUAL
Hard upper bound on the residual buffer, enforced even inside raw-text (<script>/<style>) context.