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

Method set

projects/JavaScript/proto/enums.js:1270–1277  ·  view source on GitHub ↗

* Set the value * @this {!FieldModelEnumInt16} * @param {!EnumInt16} value Value

(value)

Source from the content-addressed store, hash-verified

1268 * @param {!EnumInt16} value Value
1269 */
1270 set (value) {
1271 console.assert(((this._buffer.offset + this.fbeOffset + this.fbeSize) <= this._buffer.size), 'Model is broken!')
1272 if ((this._buffer.offset + this.fbeOffset + this.fbeSize) > this._buffer.size) {
1273 return
1274 }
1275
1276 this.writeInt16(this.fbeOffset, value.value)
1277 }
1278}
1279
1280exports.FieldModelEnumInt16 = FieldModelEnumInt16

Callers

nothing calls this directly

Calls 1

writeInt16Method · 0.80

Tested by

no test coverage detected