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

Method set

projects/JavaScript/proto/proto.js:1696–1701  ·  view source on GitHub ↗

* Set the struct value * @this {!FinalModelOrder} * @param {!Order} fbeValue Order value * @returns {!number} Final model size

(fbeValue)

Source from the content-addressed store, hash-verified

1694 * @returns {!number} Final model size
1695 */
1696 set (fbeValue) {
1697 this._buffer.shift(this.fbeOffset)
1698 let fbeSize = this.setFields(fbeValue)
1699 this._buffer.unshift(this.fbeOffset)
1700 return fbeSize
1701 }
1702
1703 /**
1704 * Set the struct fields values

Callers

nothing calls this directly

Calls 3

setFieldsMethod · 0.95
shiftMethod · 0.45
unshiftMethod · 0.45

Tested by

no test coverage detected