Expand description
Buffering utilities for efficient I/O operations
Provides buffered readers and writers with configurable buffer sizes and chunking strategies optimized for different data patterns.
Structs§
- Chunk
Stream - Stream processor for chunked data processing
Constants§
- DEFAULT_
BUFFER_ SIZE - Default buffer size for I/O operations (64KB)
- LARGE_
BUFFER_ SIZE - Large buffer size for high-throughput operations (1MB)
- SMALL_
BUFFER_ SIZE - Small buffer size for memory-constrained scenarios (4KB)
Functions§
- buffered_
reader - Create a buffered reader with default buffer size
- buffered_
reader_ with_ capacity - Create a buffered reader with custom buffer size
- buffered_
writer - Create a buffered writer with default buffer size
- buffered_
writer_ with_ capacity - Create a buffered writer with custom buffer size
- copy_
buffered - Copy data from reader to writer with buffering
- read_
chunks - Read a file in chunks, applying a function to each chunk
- write_
chunks - Write data to a file in chunks