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

Method get

projects/JavaScript/proto/test.js:440–446  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

438 * @returns {!object} Result value and its size
439 */
440 get () {
441 if ((this._buffer.offset + this.fbeOffset + this.fbeSize) > this._buffer.size) {
442 return { value: new EnumTyped(), size: 0 }
443 }
444
445 return { value: new EnumTyped(this.readUInt8(this.fbeOffset)), size: this.fbeSize }
446 }
447
448 /**
449 * Set the value

Callers

nothing calls this directly

Calls 1

readUInt8Method · 0.45

Tested by

no test coverage detected