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

Method hasValue

projects/JavaScript/proto/fbe.js:4519–4526  ·  view source on GitHub ↗

* Checks if the object contains a value * @this {!FinalModelOptional} * @returns {!boolean} Optional has value flag

()

Source from the content-addressed store, hash-verified

4517 * @returns {!boolean} Optional has value flag
4518 */
4519 get hasValue () {
4520 if ((this._buffer.offset + this.fbeOffset + 1) > this._buffer.size) {
4521 return false
4522 }
4523
4524 let fbeHasValue = this.readUInt8(this.fbeOffset)
4525 return fbeHasValue !== 0
4526 }
4527
4528 /**
4529 * Get the base final model value

Callers

nothing calls this directly

Calls 1

readUInt8Method · 0.45

Tested by

no test coverage detected