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

Method verify

projects/JavaScript/proto/proto.js:1374–1385  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

1372 * @returns {!boolean} Model valid state
1373 */
1374 verify () {
1375 if ((this.buffer.offset + this.model.fbeOffset - 4) > this.buffer.size) {
1376 return false
1377 }
1378
1379 let fbeFullSize = this.readUInt32(this.model.fbeOffset - 4)
1380 if (fbeFullSize < this.model.fbeSize) {
1381 return false
1382 }
1383
1384 return this.model.verify()
1385 }
1386
1387 /**
1388 * Create a new model (begin phase)

Callers 15

verifyFieldsMethod · 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
verifyFieldsMethod · 0.45

Calls 1

readUInt32Method · 0.45

Tested by

no test coverage detected