@adviser/cement - v0.0.0
    Preparing search index...

    Function stream2uint8arrayGrowBuffer

    • Grows a regular Uint8Array by doubling its capacity while reading.

      Chunks are copied into the growing buffer and can be released immediately. Growth copies the previously accumulated bytes, so runtime stays amortized O(n), but the returned view keeps the over-allocated backing buffer.

      Parameters

      • Optionalstream: ReadableStream<Uint8Array<ArrayBufferLike>>

      Returns Promise<Uint8Array<ArrayBufferLike>>