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

Method get

projects/JavaScript/proto/enums.js:1036–1042  ·  view source on GitHub ↗

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

(defaults = new EnumUInt8())

Source from the content-addressed store, hash-verified

1034 * @returns {!EnumUInt8} Result value
1035 */
1036 get (defaults = new EnumUInt8()) {
1037 if ((this._buffer.offset + this.fbeOffset + this.fbeSize) > this._buffer.size) {
1038 return defaults
1039 }
1040
1041 return new EnumUInt8(this.readUInt8(this.fbeOffset))
1042 }
1043
1044 /**
1045 * Set the value

Callers

nothing calls this directly

Calls 1

readUInt8Method · 0.45

Tested by

no test coverage detected