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

Method set

projects/JavaScript/proto/fbe.js:1327–1334  ·  view source on GitHub ↗

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

(value)

Source from the content-addressed store, hash-verified

1325 * @param {!number} value Value
1326 */
1327 set (value) {
1328 console.assert(((this._buffer.offset + this.fbeOffset + this.fbeSize) <= this._buffer.size), 'Model is broken!')
1329 if ((this._buffer.offset + this.fbeOffset + this.fbeSize) > this._buffer.size) {
1330 return
1331 }
1332
1333 this.writeInt8(this.fbeOffset, value)
1334 }
1335}
1336
1337exports.FieldModelInt8 = FieldModelInt8

Callers

nothing calls this directly

Calls 1

writeInt8Method · 0.80

Tested by

no test coverage detected