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

Method set

projects/JavaScript/proto/test.js:860–867  ·  view source on GitHub ↗

* Set the value * @this {!FieldModelFlagsSimple} * @param {!FlagsSimple} value Value

(value)

Source from the content-addressed store, hash-verified

858 * @param {!FlagsSimple} value Value
859 */
860 set (value) {
861 console.assert(((this._buffer.offset + this.fbeOffset + this.fbeSize) <= this._buffer.size), 'Model is broken!')
862 if ((this._buffer.offset + this.fbeOffset + this.fbeSize) > this._buffer.size) {
863 return
864 }
865
866 this.writeInt32(this.fbeOffset, value.value)
867 }
868}
869
870exports.FieldModelFlagsSimple = FieldModelFlagsSimple

Callers

nothing calls this directly

Calls 1

writeInt32Method · 0.80

Tested by

no test coverage detected