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

Method set

projects/JavaScript/proto/fbe.js:3311–3319  ·  view source on GitHub ↗

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

(value)

Source from the content-addressed store, hash-verified

3309 * @returns {!number} Final model size
3310 */
3311 set (value) {
3312 console.assert(((this._buffer.offset + this.fbeOffset + this.fbeSize) <= this._buffer.size), 'Model is broken!')
3313 if ((this._buffer.offset + this.fbeOffset + this.fbeSize) > this._buffer.size) {
3314 return 0
3315 }
3316
3317 this.writeChar(this.fbeOffset, value)
3318 return this.fbeSize
3319 }
3320}
3321
3322exports.FinalModelChar = FinalModelChar

Callers

nothing calls this directly

Calls 1

writeCharMethod · 0.80

Tested by

no test coverage detected