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

Method get

projects/JavaScript/proto/enums.js:815–821  ·  view source on GitHub ↗

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

(defaults = new EnumInt8())

Source from the content-addressed store, hash-verified

813 * @returns {!EnumInt8} Result value
814 */
815 get (defaults = new EnumInt8()) {
816 if ((this._buffer.offset + this.fbeOffset + this.fbeSize) > this._buffer.size) {
817 return defaults
818 }
819
820 return new EnumInt8(this.readInt8(this.fbeOffset))
821 }
822
823 /**
824 * Set the value

Callers

nothing calls this directly

Calls 1

readInt8Method · 0.45

Tested by

no test coverage detected