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

Method get

projects/JavaScript/proto/enums.js:1920–1926  ·  view source on GitHub ↗

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

(defaults = new EnumUInt32())

Source from the content-addressed store, hash-verified

1918 * @returns {!EnumUInt32} Result value
1919 */
1920 get (defaults = new EnumUInt32()) {
1921 if ((this._buffer.offset + this.fbeOffset + this.fbeSize) > this._buffer.size) {
1922 return defaults
1923 }
1924
1925 return new EnumUInt32(this.readUInt32(this.fbeOffset))
1926 }
1927
1928 /**
1929 * Set the value

Callers

nothing calls this directly

Calls 1

readUInt32Method · 0.45

Tested by

no test coverage detected