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

Method verify

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

Source from the content-addressed store, hash-verified

2081
2082 # Check if the struct value is valid
2083 def verify(self):
2084 if (self.buffer.offset + self._model.fbe_offset - 4) > self.buffer.size:
2085 return False
2086
2087 fbe_full_size = self.read_uint32(self._model.fbe_offset - 4)
2088 if fbe_full_size < self._model.fbe_size:
2089 return False
2090
2091 return self._model.verify()
2092
2093 # Create a new model (begin phase)
2094 def create_begin(self):

Callers 6

mainFunction · 0.95
mainFunction · 0.95

Calls 2

read_uint32Method · 0.45
verifyMethod · 0.45

Tested by 4