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

Method get

projects/JavaScript/proto/enums.js:2207–2213  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

2205 * @returns {!object} Result value and its size
2206 */
2207 get () {
2208 if ((this._buffer.offset + this.fbeOffset + this.fbeSize) > this._buffer.size) {
2209 return { value: new EnumInt64(), size: 0 }
2210 }
2211
2212 return { value: new EnumInt64(this.readInt64(this.fbeOffset).toNumber()), size: this.fbeSize }
2213 }
2214
2215 /**
2216 * Set the value

Callers

nothing calls this directly

Calls 2

toNumberMethod · 0.45
readInt64Method · 0.45

Tested by

no test coverage detected