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

Method verify

projects/JavaScript/proto/fbe.js:2419–2433  ·  view source on GitHub ↗

* Check if the array is valid * @this {!FieldModelArray} * @returns {!boolean} Field model valid state

()

Source from the content-addressed store, hash-verified

2417 * @returns {!boolean} Field model valid state
2418 */
2419 verify () {
2420 if ((this._buffer.offset + this.fbeOffset + this.fbeSize) > this._buffer.size) {
2421 return false
2422 }
2423
2424 this._model.fbeOffset = this.fbeOffset
2425 for (let i = 0; i < this._size; i++) {
2426 if (!this._model.verify()) {
2427 return false
2428 }
2429 this._model.fbeShift(this._model.fbeSize)
2430 }
2431
2432 return true
2433 }
2434
2435 /**
2436 * Get the array

Callers

nothing calls this directly

Calls 2

verifyMethod · 0.45
fbeShiftMethod · 0.45

Tested by

no test coverage detected