Skip to main content

Module boundary_stream

Module boundary_stream 

Source
Expand description

Streaming boundary-aligned wrapper for newline-delimited JSON range reads.

AlignedBoundaryStream wraps a raw byte stream and lazily aligns to record (newline) boundaries, avoiding the need for separate get_opts calls to locate boundary positions.

Structs§

AlignedBoundaryStream
A stream wrapper that lazily aligns byte boundaries to newline characters.

Constants§

END_SCAN_LOOKAHEAD
How far past raw_end the initial bounded fetch covers. If the terminating newline is not found within this window, ScanningLastTerminator issues successive same-sized GETs until the newline is located or EOF is reached.