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

Method get

projects/JavaScript/proto/enums.js:1257–1263  ·  view source on GitHub ↗

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

(defaults = new EnumInt16())

Source from the content-addressed store, hash-verified

1255 * @returns {!EnumInt16} Result value
1256 */
1257 get (defaults = new EnumInt16()) {
1258 if ((this._buffer.offset + this.fbeOffset + this.fbeSize) > this._buffer.size) {
1259 return defaults
1260 }
1261
1262 return new EnumInt16(this.readInt16(this.fbeOffset))
1263 }
1264
1265 /**
1266 * Set the value

Callers

nothing calls this directly

Calls 1

readInt16Method · 0.45

Tested by

no test coverage detected