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

Method attachBuffer

projects/JavaScript/proto/fbe.js:419–421  ·  view source on GitHub ↗

* Attach a given memory buffer * @this {!Model} * @param {!Uint8Array|!ReadBuffer|!WriteBuffer} buffer Buffer to attach * @param {number=} offset Buffer offset, defaults is 0 * @param {number=} size Buffer size, defaults is undefined

(buffer, offset = 0, size = undefined)

Source from the content-addressed store, hash-verified

417 * @param {number=} size Buffer size, defaults is undefined
418 */
419 attachBuffer (buffer, offset = 0, size = undefined) {
420 this._buffer.attachBuffer(buffer, offset, size)
421 }
422
423 /**
424 * Allocate memory in the current write buffer and return offset to the allocated memory block

Callers 15

cloneMethod · 0.45
cloneMethod · 0.45
cloneMethod · 0.45
cloneMethod · 0.45
cloneMethod · 0.45
cloneMethod · 0.45
cloneMethod · 0.45
cloneMethod · 0.45
cloneMethod · 0.45
cloneMethod · 0.45
cloneMethod · 0.45
cloneMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected