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

Method get

projects/JavaScript/proto/enums.js:1544–1550  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

1542 * @returns {!object} Result value and its size
1543 */
1544 get () {
1545 if ((this._buffer.offset + this.fbeOffset + this.fbeSize) > this._buffer.size) {
1546 return { value: new EnumUInt16(), size: 0 }
1547 }
1548
1549 return { value: new EnumUInt16(this.readUInt16(this.fbeOffset)), size: this.fbeSize }
1550 }
1551
1552 /**
1553 * Set the value

Callers

nothing calls this directly

Calls 1

readUInt16Method · 0.45

Tested by

no test coverage detected