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

Method get

projects/JavaScript/proto/enums.js:6653–6658  ·  view source on GitHub ↗

* Get the struct value * @this {!FinalModelEnums} * @param {!Enums} fbeValue Enums value, defaults is new Enums() * @returns {!object} Result struct value and its size

(fbeValue = new Enums())

Source from the content-addressed store, hash-verified

6651 * @returns {!object} Result struct value and its size
6652 */
6653 get (fbeValue = new Enums()) {
6654 this._buffer.shift(this.fbeOffset)
6655 let fbeSize = this.getFields(fbeValue)
6656 this._buffer.unshift(this.fbeOffset)
6657 return { value: fbeValue, size: fbeSize }
6658 }
6659
6660 /**
6661 * Get the struct fields values

Callers

nothing calls this directly

Calls 3

getFieldsMethod · 0.95
shiftMethod · 0.45
unshiftMethod · 0.45

Tested by

no test coverage detected