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

Method get

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

Source from the content-addressed store, hash-verified

9559
9560 # Get the struct value
9561 def get(self, fbe_value=None):
9562 if fbe_value is None:
9563 fbe_value = StructArray()
9564
9565 fbe_begin = self.get_begin()
9566 if fbe_begin == 0:
9567 return fbe_value
9568
9569 fbe_struct_size = self.read_uint32(0)
9570 self.get_fields(fbe_value, fbe_struct_size)
9571 self.get_end(fbe_begin)
9572 return fbe_value
9573
9574 # Get the struct fields values
9575 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
StructArrayClass · 0.70
read_uint32Method · 0.45

Tested by

no test coverage detected