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.
Grows a regular
Uint8Arrayby 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.