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

Method get

projects/JavaScript/proto/fbe.js:3229–3235  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

3227 * @returns {!object} Result value and its size
3228 */
3229 get () {
3230 if ((this._buffer.offset + this.fbeOffset + this.fbeSize) > this._buffer.size) {
3231 return { value: 0, size: 0 }
3232 }
3233
3234 return { value: this.readByte(this.fbeOffset), size: this.fbeSize }
3235 }
3236
3237 /**
3238 * Set the value

Callers

nothing calls this directly

Calls 1

readByteMethod · 0.45

Tested by

no test coverage detected