Skip to content

Commit

Permalink
fix(stream): correct length calculation in terminated byte reads
Browse files Browse the repository at this point in the history
  • Loading branch information
fallenoak committed Dec 17, 2023
1 parent 79d534b commit 3f0a246
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/stream/ArrayBufferStream.ts
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ class ArrayBufferStream implements IoStream {
return new Uint8Array(
this.#buffer,
this.#view.byteOffset + start,
start - end,
end - start,
);
}

Expand Down

0 comments on commit 3f0a246

Please sign in to comment.