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

Method verify

projects/JavaScript/proto/enums.js:5380–5391  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

5378 * @returns {!boolean} Model valid state
5379 */
5380 verify () {
5381 if ((this.buffer.offset + this.model.fbeOffset - 4) > this.buffer.size) {
5382 return false
5383 }
5384
5385 let fbeFullSize = this.readUInt32(this.model.fbeOffset - 4)
5386 if (fbeFullSize < this.model.fbeSize) {
5387 return false
5388 }
5389
5390 return this.model.verify()
5391 }
5392
5393 /**
5394 * Create a new model (begin phase)

Callers 3

verifyFieldsMethod · 0.45
verifyFieldsMethod · 0.45
verifyMethod · 0.45

Calls 1

readUInt32Method · 0.45

Tested by

no test coverage detected