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

Method get

projects/JavaScript/proto/fbe.js:3297–3303  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

3295 * @returns {!object} Result value and its size
3296 */
3297 get () {
3298 if ((this._buffer.offset + this.fbeOffset + this.fbeSize) > this._buffer.size) {
3299 return { value: '\0', size: 0 }
3300 }
3301
3302 return { value: this.readChar(this.fbeOffset), size: this.fbeSize }
3303 }
3304
3305 /**
3306 * Set the value

Callers

nothing calls this directly

Calls 1

readCharMethod · 0.45

Tested by

no test coverage detected