@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.
@@ -3457,12 +3457,12 @@ class Encoder {
3457
3457
  return buffer.slice(0, it.offset);
3458
3458
  }
3459
3459
  }
3460
- encodeAll(it = { offset: 0 }) {
3460
+ encodeAll(it = { offset: 0 }, buffer = this.sharedBuffer) {
3461
3461
  // console.log(`encodeAll(), this.$root.allChanges (${this.$root.allChanges.size})`);
3462
3462
  // Array.from(this.$root.allChanges.entries()).map((item) => {
3463
3463
  // console.log("->", item[0].refId, item[0].ref.toJSON());
3464
3464
  // });
3465
- return this.encode(it, undefined, this.sharedBuffer, this.root.allChanges);
3465
+ return this.encode(it, undefined, buffer, this.root.allChanges);
3466
3466
  }
3467
3467
  encodeAllView(view, sharedOffset, it, bytes = this.sharedBuffer) {
3468
3468
  const viewOffset = it.offset;