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

Method set

projects/JavaScript/proto/enums.js:828–835  ·  view source on GitHub ↗

* Set the value * @this {!FieldModelEnumInt8} * @param {!EnumInt8} value Value

(value)

Source from the content-addressed store, hash-verified

826 * @param {!EnumInt8} value Value
827 */
828 set (value) {
829 console.assert(((this._buffer.offset + this.fbeOffset + this.fbeSize) <= this._buffer.size), 'Model is broken!')
830 if ((this._buffer.offset + this.fbeOffset + this.fbeSize) > this._buffer.size) {
831 return
832 }
833
834 this.writeInt8(this.fbeOffset, value.value)
835 }
836}
837
838exports.FieldModelEnumInt8 = FieldModelEnumInt8

Callers

nothing calls this directly

Calls 1

writeInt8Method · 0.80

Tested by

no test coverage detected