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

Method set

projects/JavaScript/proto/fbe.js:1371–1378  ·  view source on GitHub ↗

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

(value)

Source from the content-addressed store, hash-verified

1369 * @param {!number} value Value
1370 */
1371 set (value) {
1372 console.assert(((this._buffer.offset + this.fbeOffset + this.fbeSize) <= this._buffer.size), 'Model is broken!')
1373 if ((this._buffer.offset + this.fbeOffset + this.fbeSize) > this._buffer.size) {
1374 return
1375 }
1376
1377 this.writeUInt8(this.fbeOffset, value)
1378 }
1379}
1380
1381exports.FieldModelUInt8 = FieldModelUInt8

Callers

nothing calls this directly

Calls 1

writeUInt8Method · 0.80

Tested by

no test coverage detected