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

Method get

projects/JavaScript/proto/fbe.js:1138–1144  ·  view source on GitHub ↗

* Get the value * @this {!FieldModelBool} * @param {boolean=} defaults Default value, defaults is false * @returns {!boolean} Result value

(defaults = false)

Source from the content-addressed store, hash-verified

1136 * @returns {!boolean} Result value
1137 */
1138 get (defaults = false) {
1139 if ((this._buffer.offset + this.fbeOffset + this.fbeSize) > this._buffer.size) {
1140 return defaults
1141 }
1142
1143 return this.readBool(this.fbeOffset)
1144 }
1145
1146 /**
1147 * Set the value

Callers

nothing calls this directly

Calls 1

readBoolMethod · 0.80

Tested by

no test coverage detected