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

Method set

projects/JavaScript/proto/fbe.js:1415–1422  ·  view source on GitHub ↗

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

(value)

Source from the content-addressed store, hash-verified

1413 * @param {!number} value Value
1414 */
1415 set (value) {
1416 console.assert(((this._buffer.offset + this.fbeOffset + this.fbeSize) <= this._buffer.size), 'Model is broken!')
1417 if ((this._buffer.offset + this.fbeOffset + this.fbeSize) > this._buffer.size) {
1418 return
1419 }
1420
1421 this.writeInt16(this.fbeOffset, value)
1422 }
1423}
1424
1425exports.FieldModelInt16 = FieldModelInt16

Callers

nothing calls this directly

Calls 1

writeInt16Method · 0.80

Tested by

no test coverage detected