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

Method get

projects/JavaScript/proto/fbe.js:1358–1364  ·  view source on GitHub ↗

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

(defaults = 0)

Source from the content-addressed store, hash-verified

1356 * @returns {!number} Result value
1357 */
1358 get (defaults = 0) {
1359 if ((this._buffer.offset + this.fbeOffset + this.fbeSize) > this._buffer.size) {
1360 return defaults
1361 }
1362
1363 return this.readUInt8(this.fbeOffset)
1364 }
1365
1366 /**
1367 * Set the value

Callers

nothing calls this directly

Calls 1

readUInt8Method · 0.45

Tested by

no test coverage detected