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

Method get

projects/JavaScript/proto/fbe.js:1446–1452  ·  view source on GitHub ↗

* Get the value * @this {!FieldModelUInt16} * @param {number=} defaults Default value, defaults is 0 * @returns {!number} Result value

(defaults = 0)

Source from the content-addressed store, hash-verified

1444 * @returns {!number} Result value
1445 */
1446 get (defaults = 0) {
1447 if ((this._buffer.offset + this.fbeOffset + this.fbeSize) > this._buffer.size) {
1448 return defaults
1449 }
1450
1451 return this.readUInt16(this.fbeOffset)
1452 }
1453
1454 /**
1455 * Set the value

Callers

nothing calls this directly

Calls 1

readUInt16Method · 0.45

Tested by

no test coverage detected