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

Method set

projects/JavaScript/proto/enums.js:1337–1345  ·  view source on GitHub ↗

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

(value)

Source from the content-addressed store, hash-verified

1335 * @returns {!number} Final model size
1336 */
1337 set (value) {
1338 console.assert(((this._buffer.offset + this.fbeOffset + this.fbeSize) <= this._buffer.size), 'Model is broken!')
1339 if ((this._buffer.offset + this.fbeOffset + this.fbeSize) > this._buffer.size) {
1340 return 0
1341 }
1342
1343 this.writeInt16(this.fbeOffset, value.value)
1344 return this.fbeSize
1345 }
1346}
1347
1348exports.FinalModelEnumInt16 = FinalModelEnumInt16

Callers

nothing calls this directly

Calls 1

writeInt16Method · 0.80

Tested by

no test coverage detected