@colyseus/schema 3.0.0-alpha.6 → 3.0.0-alpha.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3453,12 +3453,12 @@ class Encoder {
3453
3453
  return buffer.slice(0, it.offset);
3454
3454
  }
3455
3455
  }
3456
- encodeAll(it = { offset: 0 }) {
3456
+ encodeAll(it = { offset: 0 }, buffer = this.sharedBuffer) {
3457
3457
  // console.log(`encodeAll(), this.$root.allChanges (${this.$root.allChanges.size})`);
3458
3458
  // Array.from(this.$root.allChanges.entries()).map((item) => {
3459
3459
  // console.log("->", item[0].refId, item[0].ref.toJSON());
3460
3460
  // });
3461
- return this.encode(it, undefined, this.sharedBuffer, this.root.allChanges);
3461
+ return this.encode(it, undefined, buffer, this.root.allChanges);
3462
3462
  }
3463
3463
  encodeAllView(view, sharedOffset, it, bytes = this.sharedBuffer) {
3464
3464
  const viewOffset = it.offset;