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

Method get

projects/JavaScript/proto/enums.js:2428–2434  ·  view source on GitHub ↗

* Get the value * @this {!FieldModelEnumUInt64} * @returns {!object} Result value and its size

()

Source from the content-addressed store, hash-verified

2426 * @returns {!object} Result value and its size
2427 */
2428 get () {
2429 if ((this._buffer.offset + this.fbeOffset + this.fbeSize) > this._buffer.size) {
2430 return { value: new EnumUInt64(), size: 0 }
2431 }
2432
2433 return { value: new EnumUInt64(this.readUInt64(this.fbeOffset).toNumber()), size: this.fbeSize }
2434 }
2435
2436 /**
2437 * Set the value

Callers

nothing calls this directly

Calls 2

toNumberMethod · 0.45
readUInt64Method · 0.45

Tested by

no test coverage detected