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

Method verify

projects/Python/proto/proto.py:1422–1430  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1420
1421 # Check if the struct value is valid
1422 def verify(self):
1423 if (self.buffer.offset + self._model.fbe_offset - 4) > self.buffer.size:
1424 return False
1425
1426 fbe_full_size = self.read_uint32(self._model.fbe_offset - 4)
1427 if fbe_full_size < self._model.fbe_size:
1428 return False
1429
1430 return self._model.verify()
1431
1432 # Create a new model (begin phase)
1433 def create_begin(self):

Callers

nothing calls this directly

Calls 2

read_uint32Method · 0.45
verifyMethod · 0.45

Tested by

no test coverage detected