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

Method verify

projects/JavaScript/proto/protoex.js:3571–3582  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

3569 * @returns {!boolean} Model valid state
3570 */
3571 verify () {
3572 if ((this.buffer.offset + this.model.fbeOffset - 4) > this.buffer.size) {
3573 return false
3574 }
3575
3576 let fbeFullSize = this.readUInt32(this.model.fbeOffset - 4)
3577 if (fbeFullSize < this.model.fbeSize) {
3578 return false
3579 }
3580
3581 return this.model.verify()
3582 }
3583
3584 /**
3585 * 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