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

Method verify

projects/Python/proto/protoex.py:2200–2208  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2198
2199 # Check if the struct value is valid
2200 def verify(self):
2201 if (self.buffer.offset + self._model.fbe_offset - 4) > self.buffer.size:
2202 return False
2203
2204 fbe_full_size = self.read_uint32(self._model.fbe_offset - 4)
2205 if fbe_full_size < self._model.fbe_size:
2206 return False
2207
2208 return self._model.verify()
2209
2210 # Create a new model (begin phase)
2211 def create_begin(self):

Callers

nothing calls this directly

Calls 2

read_uint32Method · 0.45
verifyMethod · 0.45

Tested by

no test coverage detected