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

Method set

projects/JavaScript/proto/fbe.js:3855–3863  ·  view source on GitHub ↗

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

(value)

Source from the content-addressed store, hash-verified

3853 * @returns {!number} Final model size
3854 */
3855 set (value) {
3856 console.assert(((this._buffer.offset + this.fbeOffset + this.fbeSize) <= this._buffer.size), 'Model is broken!')
3857 if ((this._buffer.offset + this.fbeOffset + this.fbeSize) > this._buffer.size) {
3858 return 0
3859 }
3860
3861 this.writeInt64(this.fbeOffset, value)
3862 return this.fbeSize
3863 }
3864}
3865
3866exports.FinalModelInt64 = FinalModelInt64

Callers

nothing calls this directly

Calls 1

writeInt64Method · 0.80

Tested by

no test coverage detected