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

Method get

projects/JavaScript/proto/enums.js:2362–2368  ·  view source on GitHub ↗

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

(defaults = new EnumUInt64())

Source from the content-addressed store, hash-verified

2360 * @returns {!EnumUInt64} Result value
2361 */
2362 get (defaults = new EnumUInt64()) {
2363 if ((this._buffer.offset + this.fbeOffset + this.fbeSize) > this._buffer.size) {
2364 return defaults
2365 }
2366
2367 return new EnumUInt64(this.readUInt64(this.fbeOffset).toNumber())
2368 }
2369
2370 /**
2371 * Set the value

Callers

nothing calls this directly

Calls 2

toNumberMethod · 0.45
readUInt64Method · 0.45

Tested by

no test coverage detected