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

Method allocate

projects/JavaScript/proto/fbe.js:429–431  ·  view source on GitHub ↗

* Allocate memory in the current write buffer and return offset to the allocated memory block * @this {!Model} * @param {!number} size Allocation size * @returns {!number} Allocated memory offset

(size)

Source from the content-addressed store, hash-verified

427 * @returns {!number} Allocated memory offset
428 */
429 allocate (size) {
430 return this._buffer.allocate(size)
431 }
432
433 /**
434 * Remove some memory of the given size from the current write buffer

Callers 15

setBeginMethod · 0.45
createBeginMethod · 0.45
serializeMethod · 0.45
setBeginMethod · 0.45
createBeginMethod · 0.45
serializeMethod · 0.45
setBeginMethod · 0.45
createBeginMethod · 0.45
serializeMethod · 0.45
setBeginMethod · 0.45
createBeginMethod · 0.45
serializeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected