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

Method get

projects/JavaScript/proto/enums.js:1102–1108  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

1100 * @returns {!object} Result value and its size
1101 */
1102 get () {
1103 if ((this._buffer.offset + this.fbeOffset + this.fbeSize) > this._buffer.size) {
1104 return { value: new EnumUInt8(), size: 0 }
1105 }
1106
1107 return { value: new EnumUInt8(this.readUInt8(this.fbeOffset)), size: this.fbeSize }
1108 }
1109
1110 /**
1111 * Set the value

Callers

nothing calls this directly

Calls 1

readUInt8Method · 0.45

Tested by

no test coverage detected