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

Method readBool

projects/JavaScript/proto/fbe.js:603–608  ·  view source on GitHub ↗

* Read boolean value from the field model buffer * @this {!FieldModelBase} * @param {!number} offset Offset * @returns {!boolean} Boolean value

(offset)

Source from the content-addressed store, hash-verified

601 * @returns {!boolean} Boolean value
602 */
603 readBool (offset) {
604 offset = offset >>> 0
605 offset += this._buffer.offset
606 this._buffer.checkOffset(offset, 1)
607 return this._buffer.buffer[offset] !== 0
608 }
609
610 /**
611 * Read byte value from the field model buffer

Callers 2

getMethod · 0.80
getMethod · 0.80

Calls 1

checkOffsetMethod · 0.45

Tested by

no test coverage detected