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

Method set

projects/JavaScript/proto/enums.js:7142–7147  ·  view source on GitHub ↗

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

(fbeValue)

Source from the content-addressed store, hash-verified

7140 * @returns {!number} Final model size
7141 */
7142 set (fbeValue) {
7143 this._buffer.shift(this.fbeOffset)
7144 let fbeSize = this.setFields(fbeValue)
7145 this._buffer.unshift(this.fbeOffset)
7146 return fbeSize
7147 }
7148
7149 /**
7150 * 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