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

Method get

projects/JavaScript/proto/fbe.js:3637–3643  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

3635 * @returns {!object} Result value and its size
3636 */
3637 get () {
3638 if ((this._buffer.offset + this.fbeOffset + this.fbeSize) > this._buffer.size) {
3639 return { value: 0, size: 0 }
3640 }
3641
3642 return { value: this.readUInt16(this.fbeOffset), size: this.fbeSize }
3643 }
3644
3645 /**
3646 * Set the value

Callers

nothing calls this directly

Calls 1

readUInt16Method · 0.45

Tested by

no test coverage detected