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

Method set

projects/JavaScript/proto/test.js:927–935  ·  view source on GitHub ↗

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

(value)

Source from the content-addressed store, hash-verified

925 * @returns {!number} Final model size
926 */
927 set (value) {
928 console.assert(((this._buffer.offset + this.fbeOffset + this.fbeSize) <= this._buffer.size), 'Model is broken!')
929 if ((this._buffer.offset + this.fbeOffset + this.fbeSize) > this._buffer.size) {
930 return 0
931 }
932
933 this.writeInt32(this.fbeOffset, value.value)
934 return this.fbeSize
935 }
936}
937
938exports.FinalModelFlagsSimple = FinalModelFlagsSimple

Callers

nothing calls this directly

Calls 1

writeInt32Method · 0.80

Tested by

no test coverage detected