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

Method set

projects/JavaScript/proto/enums.js:2221–2229  ·  view source on GitHub ↗

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

(value)

Source from the content-addressed store, hash-verified

2219 * @returns {!number} Final model size
2220 */
2221 set (value) {
2222 console.assert(((this._buffer.offset + this.fbeOffset + this.fbeSize) <= this._buffer.size), 'Model is broken!')
2223 if ((this._buffer.offset + this.fbeOffset + this.fbeSize) > this._buffer.size) {
2224 return 0
2225 }
2226
2227 this.writeInt64(this.fbeOffset, Int64.fromNumber(value.value))
2228 return this.fbeSize
2229 }
2230}
2231
2232exports.FinalModelEnumInt64 = FinalModelEnumInt64

Callers

nothing calls this directly

Calls 2

writeInt64Method · 0.80
fromNumberMethod · 0.45

Tested by

no test coverage detected