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

Method set

projects/JavaScript/proto/fbe.js:3991–3999  ·  view source on GitHub ↗

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

(value)

Source from the content-addressed store, hash-verified

3989 * @returns {!number} Final model size
3990 */
3991 set (value) {
3992 console.assert(((this._buffer.offset + this.fbeOffset + this.fbeSize) <= this._buffer.size), 'Model is broken!')
3993 if ((this._buffer.offset + this.fbeOffset + this.fbeSize) > this._buffer.size) {
3994 return 0
3995 }
3996
3997 this.writeFloat(this.fbeOffset, value)
3998 return this.fbeSize
3999 }
4000}
4001
4002exports.FinalModelFloat = FinalModelFloat

Callers

nothing calls this directly

Calls 1

writeFloatMethod · 0.80

Tested by

no test coverage detected