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

Method verify

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

Source from the content-addressed store, hash-verified

1538
1539 # Check if the struct value is valid
1540 def verify(self):
1541 if (self.buffer.offset + self._model.fbe_offset - 4) > self.buffer.size:
1542 return False
1543
1544 fbe_full_size = self.read_uint32(self._model.fbe_offset - 4)
1545 if fbe_full_size < self._model.fbe_size:
1546 return False
1547
1548 return self._model.verify()
1549
1550 # Create a new model (begin phase)
1551 def create_begin(self):

Callers

nothing calls this directly

Calls 2

read_uint32Method · 0.45
verifyMethod · 0.45

Tested by

no test coverage detected