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

Method set

projects/JavaScript/proto/enums.js:1779–1787  ·  view source on GitHub ↗

* Set the value * @this {!FieldModelEnumInt32} * @param {!EnumInt32} value Value * @returns {!number} Final model size

(value)

Source from the content-addressed store, hash-verified

1777 * @returns {!number} Final model size
1778 */
1779 set (value) {
1780 console.assert(((this._buffer.offset + this.fbeOffset + this.fbeSize) <= this._buffer.size), 'Model is broken!')
1781 if ((this._buffer.offset + this.fbeOffset + this.fbeSize) > this._buffer.size) {
1782 return 0
1783 }
1784
1785 this.writeInt32(this.fbeOffset, value.value)
1786 return this.fbeSize
1787 }
1788}
1789
1790exports.FinalModelEnumInt32 = FinalModelEnumInt32

Callers

nothing calls this directly

Calls 1

writeInt32Method · 0.80

Tested by

no test coverage detected