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

Method get

projects/JavaScript/proto/fbe.js:1402–1408  ·  view source on GitHub ↗

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

(defaults = 0)

Source from the content-addressed store, hash-verified

1400 * @returns {!number} Result value
1401 */
1402 get (defaults = 0) {
1403 if ((this._buffer.offset + this.fbeOffset + this.fbeSize) > this._buffer.size) {
1404 return defaults
1405 }
1406
1407 return this.readInt16(this.fbeOffset)
1408 }
1409
1410 /**
1411 * Set the value

Callers

nothing calls this directly

Calls 1

readInt16Method · 0.45

Tested by

no test coverage detected