We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5af36d2 commit be5383dCopy full SHA for be5383d
packages/tl-pack/src/BinaryReader.ts
@@ -534,7 +534,7 @@ export class BinaryReader {
534
this.assertConstructor(CORE_TYPES.Checksum);
535
}
536
537
- const bytes = this.target.slice(this._checksumOffset, offset);
+ const bytes = this.target.subarray(this._checksumOffset, offset);
538
const checksum = this.readInt32();
539
let sum = 0;
540
packages/tl-pack/src/BinaryWriter.ts
@@ -264,7 +264,7 @@ export class BinaryWriter {
264
265
266
writeChecksum(withConstructor: boolean = true): this {
267
- const bytes = this.target.slice(this.offsetChecksum, this.offset);
+ const bytes = this.target.subarray(this.offsetChecksum, this.offset);
268
269
270
for (const val of bytes) {
0 commit comments