Skip to content

Commit 0c50f08

Browse files
committed
v1.8.6 fix encodeInto offset
1 parent 1afee21 commit 0c50f08

6 files changed

Lines changed: 6 additions & 6 deletions

File tree

dist/index.cjs

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

dist/index.cjs.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.mjs

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

dist/index.mjs.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "tinybuf",
3-
"version": "1.8.5",
3+
"version": "1.8.6",
44
"author": "Reece Como <reece.como@gmail.com>",
55
"authors": [
66
"Reece Como <reece.como@gmail.com>",

src/core/lib/BufferWriter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export class BufferWriter {
2121
}
2222

2323
public $viewBytes(): Uint8Array {
24-
return this._$bytes.subarray(this._$bytes.byteOffset, this._$bytes.byteOffset + this.$byteLength);
24+
return this._$bytes.subarray(0, this.$byteLength);
2525
}
2626

2727
public $copyBytes(): Uint8Array {

0 commit comments

Comments
 (0)