01 · STREAMING ENGINE
Unlimited 64KB+ Streaming & Exact Line Framing
- Problem
ScanReaderErrmisfiredlen(leftover) + n > 8192across 64KB read boundaries, jumping over lines past 64KB and breaking cross-chunk PEM footers.- Solution
- Framed
leftoverto the firstbytes.IndexBytenewline, tracked\n\nline counts, flushed final EOF lines, and propagated non-EOF I/O errors. - Outcome
- Secrets at 79KB, 130KB, or line 75,000 of 150,000-line files are caught with exact line numbers; read errors fail closed.