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

Method verify

projects/JavaScript/proto/test.js:19109–19120  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

19107 * @returns {!boolean} Model valid state
19108 */
19109 verify () {
19110 if ((this.buffer.offset + this.model.fbeOffset - 4) > this.buffer.size) {
19111 return false
19112 }
19113
19114 let fbeFullSize = this.readUInt32(this.model.fbeOffset - 4)
19115 if (fbeFullSize < this.model.fbeSize) {
19116 return false
19117 }
19118
19119 return this.model.verify()
19120 }
19121
19122 /**
19123 * Create a new model (begin phase)

Callers 15

verifyFieldsMethod · 0.45
verifyMethod · 0.45
verifyFieldsMethod · 0.45
verifyMethod · 0.45
verifyFieldsMethod · 0.45
verifyMethod · 0.45
verifyFieldsMethod · 0.45
verifyMethod · 0.45
verifyFieldsMethod · 0.45
verifyMethod · 0.45
verifyFieldsMethod · 0.45
verifyMethod · 0.45

Calls 1

readUInt32Method · 0.45

Tested by

no test coverage detected