MCPcopy Create free account
hub / github.com/chronoxor/FastBinaryEncoding / resize

Method resize

projects/JavaScript/proto/fbe.js:309–315  ·  view source on GitHub ↗

* Resize the current write buffer * @this {!WriteBuffer} * @param {number} size Write buffer size

(size)

Source from the content-addressed store, hash-verified

307 * @param {number} size Write buffer size
308 */
309 resize (size) {
310 this.reserve(size)
311 this._size = size
312 if (this._offset > this._size) {
313 this._offset = this._size
314 }
315 }
316
317 /**
318 * Reset the current write buffer and its offset

Callers

nothing calls this directly

Calls 1

reserveMethod · 0.95

Tested by

no test coverage detected