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

Method verify

projects/JavaScript/proto/proto.js:2369–2380  ·  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

2367 * @returns {!boolean} Model valid state
2368 */
2369 verify () {
2370 if ((this.buffer.offset + this.model.fbeOffset - 4) > this.buffer.size) {
2371 return false
2372 }
2373
2374 let fbeFullSize = this.readUInt32(this.model.fbeOffset - 4)
2375 if (fbeFullSize < this.model.fbeSize) {
2376 return false
2377 }
2378
2379 return this.model.verify()
2380 }
2381
2382 /**
2383 * 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