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

Method set

projects/JavaScript/proto/fbe.js:3175–3183  ·  view source on GitHub ↗

* Set the value * @this {!FieldModelBool} * @param {!boolean} value Value * @returns {!number} Final model size

(value)

Source from the content-addressed store, hash-verified

3173 * @returns {!number} Final model size
3174 */
3175 set (value) {
3176 console.assert(((this._buffer.offset + this.fbeOffset + this.fbeSize) <= this._buffer.size), 'Model is broken!')
3177 if ((this._buffer.offset + this.fbeOffset + this.fbeSize) > this._buffer.size) {
3178 return 0
3179 }
3180
3181 this.writeBool(this.fbeOffset, value)
3182 return this.fbeSize
3183 }
3184}
3185
3186exports.FinalModelBool = FinalModelBool

Callers

nothing calls this directly

Calls 1

writeBoolMethod · 0.80

Tested by

no test coverage detected