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

Method get

projects/JavaScript/proto/enums.js:218–224  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

readByteMethod · 0.45

Tested by

no test coverage detected