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

Method get

projects/JavaScript/proto/test.js:219–225  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

217 * @returns {!object} Result value and its size
218 */
219 get () {
220 if ((this._buffer.offset + this.fbeOffset + this.fbeSize) > this._buffer.size) {
221 return { value: new EnumSimple(), size: 0 }
222 }
223
224 return { value: new EnumSimple(this.readInt32(this.fbeOffset)), size: this.fbeSize }
225 }
226
227 /**
228 * Set the value

Callers

nothing calls this directly

Calls 1

readInt32Method · 0.45

Tested by

no test coverage detected