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

Method set

projects/JavaScript/proto/enums.js:2154–2161  ·  view source on GitHub ↗

* Set the value * @this {!FieldModelEnumInt64} * @param {!EnumInt64} value Value

(value)

Source from the content-addressed store, hash-verified

2152 * @param {!EnumInt64} value Value
2153 */
2154 set (value) {
2155 console.assert(((this._buffer.offset + this.fbeOffset + this.fbeSize) <= this._buffer.size), 'Model is broken!')
2156 if ((this._buffer.offset + this.fbeOffset + this.fbeSize) > this._buffer.size) {
2157 return
2158 }
2159
2160 this.writeInt64(this.fbeOffset, Int64.fromNumber(value.value))
2161 }
2162}
2163
2164exports.FieldModelEnumInt64 = FieldModelEnumInt64

Callers

nothing calls this directly

Calls 2

writeInt64Method · 0.80
fromNumberMethod · 0.45

Tested by

no test coverage detected