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

Method get

projects/JavaScript/proto/fbe.js:1314–1320  ·  view source on GitHub ↗

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

(defaults = 0)

Source from the content-addressed store, hash-verified

1312 * @returns {!number} Result value
1313 */
1314 get (defaults = 0) {
1315 if ((this._buffer.offset + this.fbeOffset + this.fbeSize) > this._buffer.size) {
1316 return defaults
1317 }
1318
1319 return this.readInt8(this.fbeOffset)
1320 }
1321
1322 /**
1323 * Set the value

Callers

nothing calls this directly

Calls 1

readInt8Method · 0.45

Tested by

no test coverage detected