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

Method get

projects/JavaScript/proto/enums.js:1986–1992  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

1984 * @returns {!object} Result value and its size
1985 */
1986 get () {
1987 if ((this._buffer.offset + this.fbeOffset + this.fbeSize) > this._buffer.size) {
1988 return { value: new EnumUInt32(), size: 0 }
1989 }
1990
1991 return { value: new EnumUInt32(this.readUInt32(this.fbeOffset)), size: this.fbeSize }
1992 }
1993
1994 /**
1995 * Set the value

Callers

nothing calls this directly

Calls 1

readUInt32Method · 0.45

Tested by

no test coverage detected