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

Method get

projects/JavaScript/proto/protoex.js:653–659  ·  view source on GitHub ↗

* Get the value * @this {!FieldModelStateEx} * @param {StateEx=} defaults Default value, defaults is new StateEx() * @returns {!StateEx} Result value

(defaults = new StateEx())

Source from the content-addressed store, hash-verified

651 * @returns {!StateEx} Result value
652 */
653 get (defaults = new StateEx()) {
654 if ((this._buffer.offset + this.fbeOffset + this.fbeSize) > this._buffer.size) {
655 return defaults
656 }
657
658 return new StateEx(this.readByte(this.fbeOffset))
659 }
660
661 /**
662 * Set the value

Callers

nothing calls this directly

Calls 1

readByteMethod · 0.45

Tested by

no test coverage detected