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

Method set

projects/JavaScript/proto/fbe.js:3379–3387  ·  view source on GitHub ↗

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

(value)

Source from the content-addressed store, hash-verified

3377 * @returns {!number} Final model size
3378 */
3379 set (value) {
3380 console.assert(((this._buffer.offset + this.fbeOffset + this.fbeSize) <= this._buffer.size), 'Model is broken!')
3381 if ((this._buffer.offset + this.fbeOffset + this.fbeSize) > this._buffer.size) {
3382 return 0
3383 }
3384
3385 this.writeWChar(this.fbeOffset, value)
3386 return this.fbeSize
3387 }
3388}
3389
3390exports.FinalModelWChar = FinalModelWChar

Callers

nothing calls this directly

Calls 1

writeWCharMethod · 0.80

Tested by

no test coverage detected