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

Method get

projects/JavaScript/proto/fbe.js:3501–3507  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

3499 * @returns {!object} Result value and its size
3500 */
3501 get () {
3502 if ((this._buffer.offset + this.fbeOffset + this.fbeSize) > this._buffer.size) {
3503 return { value: 0, size: 0 }
3504 }
3505
3506 return { value: this.readUInt8(this.fbeOffset), size: this.fbeSize }
3507 }
3508
3509 /**
3510 * Set the value

Callers

nothing calls this directly

Calls 1

readUInt8Method · 0.45

Tested by

no test coverage detected