Expand description
Hybrid in-memory + tempfile-spill buffer for soaking up stdin.
Per AD-002: small inputs stay in a Vec<u8>; once the buffer would
exceed the spill threshold, the in-memory bytes are flushed into a
sibling tempfile and the remainder of stdin streams through a
BufWriter<NamedTempFile>.
The spill tempfile is placed in the target’s parent directory (not
$TMPDIR) so that the eventual atomic rename in crate::atomic
works without crossing a filesystem boundary (HINT-002).
Enums§
- Buffer
- The buffered input. Transitions from in-memory to spilled as data accumulates.