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

Method set

projects/JavaScript/proto/test.js:233–241  ·  view source on GitHub ↗

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

(value)

Source from the content-addressed store, hash-verified

231 * @returns {!number} Final model size
232 */
233 set (value) {
234 console.assert(((this._buffer.offset + this.fbeOffset + this.fbeSize) <= this._buffer.size), 'Model is broken!')
235 if ((this._buffer.offset + this.fbeOffset + this.fbeSize) > this._buffer.size) {
236 return 0
237 }
238
239 this.writeInt32(this.fbeOffset, value.value)
240 return this.fbeSize
241 }
242}
243
244exports.FinalModelEnumSimple = FinalModelEnumSimple

Callers

nothing calls this directly

Calls 1

writeInt32Method · 0.80

Tested by

no test coverage detected