bin-serde 1.7.2 → 1.7.3

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.
package/index.ts CHANGED
@@ -159,6 +159,8 @@ export class Writer {
159
159
 
160
160
  reset(): this {
161
161
  this.pos = 0;
162
+ this.bytes = allocFromSlab(this.bytes.length);
163
+ this._view = null;
162
164
  return this;
163
165
  }
164
166
 
package/lib/index.js CHANGED
@@ -140,6 +140,8 @@ export class Writer {
140
140
  }
141
141
  reset() {
142
142
  this.pos = 0;
143
+ this.bytes = allocFromSlab(this.bytes.length);
144
+ this._view = null;
143
145
  return this;
144
146
  }
145
147
  get size() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bin-serde",
3
- "version": "1.7.2",
3
+ "version": "1.7.3",
4
4
  "description": "A low level library for efficiently writing and reading binary data in javascript",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",