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

Method get

projects/JavaScript/proto/enums.js:1323–1329  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

1321 * @returns {!object} Result value and its size
1322 */
1323 get () {
1324 if ((this._buffer.offset + this.fbeOffset + this.fbeSize) > this._buffer.size) {
1325 return { value: new EnumInt16(), size: 0 }
1326 }
1327
1328 return { value: new EnumInt16(this.readInt16(this.fbeOffset)), size: this.fbeSize }
1329 }
1330
1331 /**
1332 * Set the value

Callers

nothing calls this directly

Calls 1

readInt16Method · 0.45

Tested by

no test coverage detected