videosphere
    Preparing search index...

    Batches small ReadableStream chunks into fewer network writes for better throughput on large files.

    Index

    Constructors

    Methods

    • Appends a source chunk and returns full target-sized blocks ready to write.

      Parameters

      • chunk: Uint8Array

        Bytes from the upstream video stream.

      Returns Uint8Array<ArrayBufferLike>[]

      Chunks of up to the configured target size.

    • Drains any bytes smaller than the target chunk size at end of stream.

      Returns Uint8Array<ArrayBufferLike>

      Final partial chunk, if any.