splat-transform API Reference - v1.6.0
    Preparing search index...

    Class BufferedReadStream

    ReadStream wrapper that adds read-ahead buffering to reduce async overhead. Reads larger chunks from the inner stream and buffers excess data for subsequent small reads. Useful for sources with high per-call overhead.

    // Wrap a stream with 4MB read-ahead buffering
    const buffered = new BufferedReadStream(rawStream, 4 * 1024 * 1024);
    const data = await buffered.readAll();

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    bytesRead: number = 0

    Total bytes read from this stream so far.

    expectedSize: number

    Size hint for buffer pre-allocation in readAll(). May be undefined if size is unknown.

    Methods