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

Method get

projects/JavaScript/proto/test.js:847–853  ·  view source on GitHub ↗

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

(defaults = new FlagsSimple())

Source from the content-addressed store, hash-verified

845 * @returns {!FlagsSimple} Result value
846 */
847 get (defaults = new FlagsSimple()) {
848 if ((this._buffer.offset + this.fbeOffset + this.fbeSize) > this._buffer.size) {
849 return defaults
850 }
851
852 return new FlagsSimple(this.readInt32(this.fbeOffset))
853 }
854
855 /**
856 * Set the value

Callers

nothing calls this directly

Calls 1

readInt32Method · 0.45

Tested by

no test coverage detected