diff --git a/src/lib/stream/ArrayBufferStream.ts b/src/lib/stream/ArrayBufferStream.ts index acf28a4..b06fe39 100644 --- a/src/lib/stream/ArrayBufferStream.ts +++ b/src/lib/stream/ArrayBufferStream.ts @@ -221,7 +221,7 @@ class ArrayBufferStream implements IoStream { return new Uint8Array( this.#buffer, this.#view.byteOffset + start, - start - end, + end - start, ); }