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

Method verify

projects/JavaScript/proto/protoex.js:2521–2532  ·  view source on GitHub ↗

* Check if the struct value is valid * @this {!BalanceModel} * @returns {!boolean} Model valid state

()

Source from the content-addressed store, hash-verified

2519 * @returns {!boolean} Model valid state
2520 */
2521 verify () {
2522 if ((this.buffer.offset + this.model.fbeOffset - 4) > this.buffer.size) {
2523 return false
2524 }
2525
2526 let fbeFullSize = this.readUInt32(this.model.fbeOffset - 4)
2527 if (fbeFullSize < this.model.fbeSize) {
2528 return false
2529 }
2530
2531 return this.model.verify()
2532 }
2533
2534 /**
2535 * Create a new model (begin phase)

Callers

nothing calls this directly

Calls 2

readUInt32Method · 0.45
verifyMethod · 0.45

Tested by

no test coverage detected