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

Method get

projects/JavaScript/proto/fbe.js:3569–3575  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

3567 * @returns {!object} Result value and its size
3568 */
3569 get () {
3570 if ((this._buffer.offset + this.fbeOffset + this.fbeSize) > this._buffer.size) {
3571 return { value: 0, size: 0 }
3572 }
3573
3574 return { value: this.readInt16(this.fbeOffset), size: this.fbeSize }
3575 }
3576
3577 /**
3578 * Set the value

Callers

nothing calls this directly

Calls 1

readInt16Method · 0.45

Tested by

no test coverage detected