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

Method get

projects/JavaScript/proto/enums.js:1478–1484  ·  view source on GitHub ↗

* Get the value * @this {!FieldModelEnumUInt16} * @param {EnumUInt16=} defaults Default value, defaults is new EnumUInt16() * @returns {!EnumUInt16} Result value

(defaults = new EnumUInt16())

Source from the content-addressed store, hash-verified

1476 * @returns {!EnumUInt16} Result value
1477 */
1478 get (defaults = new EnumUInt16()) {
1479 if ((this._buffer.offset + this.fbeOffset + this.fbeSize) > this._buffer.size) {
1480 return defaults
1481 }
1482
1483 return new EnumUInt16(this.readUInt16(this.fbeOffset))
1484 }
1485
1486 /**
1487 * Set the value

Callers

nothing calls this directly

Calls 1

readUInt16Method · 0.45

Tested by

no test coverage detected