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

Method verify

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

3418 * @returns {!boolean} Model valid state
3419 */
3420 verify () {
3421 if ((this.buffer.offset + this.model.fbeOffset - 4) > this.buffer.size) {
3422 return false
3423 }
3424
3425 let fbeFullSize = this.readUInt32(this.model.fbeOffset - 4)
3426 if (fbeFullSize < this.model.fbeSize) {
3427 return false
3428 }
3429
3430 return this.model.verify()
3431 }
3432
3433 /**
3434 * 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