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

Method get

projects/JavaScript/proto/test.js:153–159  ·  view source on GitHub ↗

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

(defaults = new EnumSimple())

Source from the content-addressed store, hash-verified

151 * @returns {!EnumSimple} Result value
152 */
153 get (defaults = new EnumSimple()) {
154 if ((this._buffer.offset + this.fbeOffset + this.fbeSize) > this._buffer.size) {
155 return defaults
156 }
157
158 return new EnumSimple(this.readInt32(this.fbeOffset))
159 }
160
161 /**
162 * Set the value

Callers

nothing calls this directly

Calls 1

readInt32Method · 0.45

Tested by

no test coverage detected