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

Method set

projects/JavaScript/proto/enums.js:1712–1719  ·  view source on GitHub ↗

* Set the value * @this {!FieldModelEnumInt32} * @param {!EnumInt32} value Value

(value)

Source from the content-addressed store, hash-verified

1710 * @param {!EnumInt32} value Value
1711 */
1712 set (value) {
1713 console.assert(((this._buffer.offset + this.fbeOffset + this.fbeSize) <= this._buffer.size), 'Model is broken!')
1714 if ((this._buffer.offset + this.fbeOffset + this.fbeSize) > this._buffer.size) {
1715 return
1716 }
1717
1718 this.writeInt32(this.fbeOffset, value.value)
1719 }
1720}
1721
1722exports.FieldModelEnumInt32 = FieldModelEnumInt32

Callers

nothing calls this directly

Calls 1

writeInt32Method · 0.80

Tested by

no test coverage detected