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

Method verify

projects/JavaScript/proto/test.js:11872–11883  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

11870 * @returns {!boolean} Model valid state
11871 */
11872 verify () {
11873 if ((this.buffer.offset + this.model.fbeOffset - 4) > this.buffer.size) {
11874 return false
11875 }
11876
11877 let fbeFullSize = this.readUInt32(this.model.fbeOffset - 4)
11878 if (fbeFullSize < this.model.fbeSize) {
11879 return false
11880 }
11881
11882 return this.model.verify()
11883 }
11884
11885 /**
11886 * 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