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

Method get

projects/JavaScript/proto/enums.js:1765–1771  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

1763 * @returns {!object} Result value and its size
1764 */
1765 get () {
1766 if ((this._buffer.offset + this.fbeOffset + this.fbeSize) > this._buffer.size) {
1767 return { value: new EnumInt32(), size: 0 }
1768 }
1769
1770 return { value: new EnumInt32(this.readInt32(this.fbeOffset)), size: this.fbeSize }
1771 }
1772
1773 /**
1774 * Set the value

Callers

nothing calls this directly

Calls 1

readInt32Method · 0.45

Tested by

no test coverage detected