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

Method set

projects/JavaScript/proto/fbe.js:1151–1158  ·  view source on GitHub ↗

* Set the value * @this {!FieldModelBool} * @param {!boolean} value Value

(value)

Source from the content-addressed store, hash-verified

1149 * @param {!boolean} value Value
1150 */
1151 set (value) {
1152 console.assert(((this._buffer.offset + this.fbeOffset + this.fbeSize) <= this._buffer.size), 'Model is broken!')
1153 if ((this._buffer.offset + this.fbeOffset + this.fbeSize) > this._buffer.size) {
1154 return
1155 }
1156
1157 this.writeBool(this.fbeOffset, value)
1158 }
1159}
1160
1161exports.FieldModelBool = FieldModelBool

Callers

nothing calls this directly

Calls 1

writeBoolMethod · 0.80

Tested by

no test coverage detected