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

Method get

projects/JavaScript/proto/enums.js:2141–2147  ·  view source on GitHub ↗

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

(defaults = new EnumInt64())

Source from the content-addressed store, hash-verified

2139 * @returns {!EnumInt64} Result value
2140 */
2141 get (defaults = new EnumInt64()) {
2142 if ((this._buffer.offset + this.fbeOffset + this.fbeSize) > this._buffer.size) {
2143 return defaults
2144 }
2145
2146 return new EnumInt64(this.readInt64(this.fbeOffset).toNumber())
2147 }
2148
2149 /**
2150 * Set the value

Callers

nothing calls this directly

Calls 2

toNumberMethod · 0.45
readInt64Method · 0.45

Tested by

no test coverage detected