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

Method set

projects/JavaScript/proto/enums.js:674–682  ·  view source on GitHub ↗

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

(value)

Source from the content-addressed store, hash-verified

672 * @returns {!number} Final model size
673 */
674 set (value) {
675 console.assert(((this._buffer.offset + this.fbeOffset + this.fbeSize) <= this._buffer.size), 'Model is broken!')
676 if ((this._buffer.offset + this.fbeOffset + this.fbeSize) > this._buffer.size) {
677 return 0
678 }
679
680 this.writeUInt32(this.fbeOffset, value.value)
681 return this.fbeSize
682 }
683}
684
685exports.FinalModelEnumWChar = FinalModelEnumWChar

Callers

nothing calls this directly

Calls 1

writeUInt32Method · 0.45

Tested by

no test coverage detected