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

Method get

projects/Python/proto/test.py:14491–14502  ·  view source on GitHub ↗
(self, fbe_value=None)

Source from the content-addressed store, hash-verified

14489
14490 # Get the struct value
14491 def get(self, fbe_value=None):
14492 if fbe_value is None:
14493 fbe_value = StructHash()
14494
14495 fbe_begin = self.get_begin()
14496 if fbe_begin == 0:
14497 return fbe_value
14498
14499 fbe_struct_size = self.read_uint32(0)
14500 self.get_fields(fbe_value, fbe_struct_size)
14501 self.get_end(fbe_begin)
14502 return fbe_value
14503
14504 # Get the struct fields values
14505 def get_fields(self, fbe_value, fbe_struct_size):

Callers

nothing calls this directly

Calls 5

get_beginMethod · 0.95
get_fieldsMethod · 0.95
get_endMethod · 0.95
StructHashClass · 0.70
read_uint32Method · 0.45

Tested by

no test coverage detected