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

Method set

projects/JavaScript/proto/fbe.js:1503–1510  ·  view source on GitHub ↗

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

(value)

Source from the content-addressed store, hash-verified

1501 * @param {!number} value Value
1502 */
1503 set (value) {
1504 console.assert(((this._buffer.offset + this.fbeOffset + this.fbeSize) <= this._buffer.size), 'Model is broken!')
1505 if ((this._buffer.offset + this.fbeOffset + this.fbeSize) > this._buffer.size) {
1506 return
1507 }
1508
1509 this.writeInt32(this.fbeOffset, value)
1510 }
1511}
1512
1513exports.FieldModelInt32 = FieldModelInt32

Callers

nothing calls this directly

Calls 1

writeInt32Method · 0.80

Tested by

no test coverage detected