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

Method get

projects/JavaScript/proto/enums.js:881–887  ·  view source on GitHub ↗

* Get the value * @this {!FieldModelEnumInt8} * @returns {!object} Result value and its size

()

Source from the content-addressed store, hash-verified

879 * @returns {!object} Result value and its size
880 */
881 get () {
882 if ((this._buffer.offset + this.fbeOffset + this.fbeSize) > this._buffer.size) {
883 return { value: new EnumInt8(), size: 0 }
884 }
885
886 return { value: new EnumInt8(this.readInt8(this.fbeOffset)), size: this.fbeSize }
887 }
888
889 /**
890 * Set the value

Callers

nothing calls this directly

Calls 1

readInt8Method · 0.45

Tested by

no test coverage detected