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

Method get

projects/JavaScript/proto/test.js:564–570  ·  view source on GitHub ↗

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

(defaults = new EnumEmpty())

Source from the content-addressed store, hash-verified

562 * @returns {!EnumEmpty} Result value
563 */
564 get (defaults = new EnumEmpty()) {
565 if ((this._buffer.offset + this.fbeOffset + this.fbeSize) > this._buffer.size) {
566 return defaults
567 }
568
569 return new EnumEmpty(this.readInt32(this.fbeOffset))
570 }
571
572 /**
573 * Set the value

Callers

nothing calls this directly

Calls 1

readInt32Method · 0.45

Tested by

no test coverage detected