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

Method get

projects/JavaScript/proto/fbe.js:2441–2452  ·  view source on GitHub ↗

* Get the array * @this {!FieldModelArray} * @param {Array=} values Array values, defaults is [] * @returns {!Array} Result array

(values = [])

Source from the content-addressed store, hash-verified

2439 * @returns {!Array} Result array
2440 */
2441 get (values = []) {
2442 values.length = 0
2443
2444 let fbeModel = this.getItem(0)
2445 for (let i = 0; i < this._size; i++) {
2446 let value = fbeModel.get()
2447 values.push(value)
2448 fbeModel.fbeShift(fbeModel.fbeSize)
2449 }
2450
2451 return values
2452 }
2453
2454 /**
2455 * Set the array

Callers

nothing calls this directly

Calls 3

getItemMethod · 0.95
getMethod · 0.45
fbeShiftMethod · 0.45

Tested by

no test coverage detected