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

Method set

projects/JavaScript/proto/enums.js:895–903  ·  view source on GitHub ↗

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

(value)

Source from the content-addressed store, hash-verified

893 * @returns {!number} Final model size
894 */
895 set (value) {
896 console.assert(((this._buffer.offset + this.fbeOffset + this.fbeSize) <= this._buffer.size), 'Model is broken!')
897 if ((this._buffer.offset + this.fbeOffset + this.fbeSize) > this._buffer.size) {
898 return 0
899 }
900
901 this.writeInt8(this.fbeOffset, value.value)
902 return this.fbeSize
903 }
904}
905
906exports.FinalModelEnumInt8 = FinalModelEnumInt8

Callers

nothing calls this directly

Calls 1

writeInt8Method · 0.80

Tested by

no test coverage detected