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

Method get

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

Source from the content-addressed store, hash-verified

15280
15281 # Get the struct value
15282 def get(self, fbe_value=None):
15283 if fbe_value is None:
15284 fbe_value = StructHashEx()
15285
15286 fbe_begin = self.get_begin()
15287 if fbe_begin == 0:
15288 return fbe_value
15289
15290 fbe_struct_size = self.read_uint32(0)
15291 self.get_fields(fbe_value, fbe_struct_size)
15292 self.get_end(fbe_begin)
15293 return fbe_value
15294
15295 # Get the struct fields values
15296 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
StructHashExClass · 0.70
read_uint32Method · 0.45

Tested by

no test coverage detected