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

Method set

projects/JavaScript/proto/fbe.js:1459–1466  ·  view source on GitHub ↗

* Set the value * @this {!FieldModelUInt16} * @param {!number} value Value

(value)

Source from the content-addressed store, hash-verified

1457 * @param {!number} value Value
1458 */
1459 set (value) {
1460 console.assert(((this._buffer.offset + this.fbeOffset + this.fbeSize) <= this._buffer.size), 'Model is broken!')
1461 if ((this._buffer.offset + this.fbeOffset + this.fbeSize) > this._buffer.size) {
1462 return
1463 }
1464
1465 this.writeUInt16(this.fbeOffset, value)
1466 }
1467}
1468
1469exports.FieldModelUInt16 = FieldModelUInt16

Callers

nothing calls this directly

Calls 1

writeUInt16Method · 0.80

Tested by

no test coverage detected