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

Method set

projects/JavaScript/proto/test.js:1171–1178  ·  view source on GitHub ↗

* Set the value * @this {!FieldModelFlagsTyped} * @param {!FlagsTyped} value Value

(value)

Source from the content-addressed store, hash-verified

1169 * @param {!FlagsTyped} value Value
1170 */
1171 set (value) {
1172 console.assert(((this._buffer.offset + this.fbeOffset + this.fbeSize) <= this._buffer.size), 'Model is broken!')
1173 if ((this._buffer.offset + this.fbeOffset + this.fbeSize) > this._buffer.size) {
1174 return
1175 }
1176
1177 this.writeUInt64(this.fbeOffset, UInt64.fromNumber(value.value))
1178 }
1179}
1180
1181exports.FieldModelFlagsTyped = FieldModelFlagsTyped

Callers

nothing calls this directly

Calls 2

writeUInt64Method · 0.80
fromNumberMethod · 0.45

Tested by

no test coverage detected