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

Method get

projects/JavaScript/proto/fbe.js:1490–1496  ·  view source on GitHub ↗

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

(defaults = 0)

Source from the content-addressed store, hash-verified

1488 * @returns {!number} Result value
1489 */
1490 get (defaults = 0) {
1491 if ((this._buffer.offset + this.fbeOffset + this.fbeSize) > this._buffer.size) {
1492 return defaults
1493 }
1494
1495 return this.readInt32(this.fbeOffset)
1496 }
1497
1498 /**
1499 * Set the value

Callers

nothing calls this directly

Calls 1

readInt32Method · 0.45

Tested by

no test coverage detected