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

Method get

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

Source from the content-addressed store, hash-verified

5100
5101 # Get the struct value
5102 def get(self, fbe_value=None):
5103 if fbe_value is None:
5104 fbe_value = StructOptional()
5105
5106 fbe_begin = self.get_begin()
5107 if fbe_begin == 0:
5108 return fbe_value
5109
5110 fbe_struct_size = self.read_uint32(0)
5111 self.get_fields(fbe_value, fbe_struct_size)
5112 self.get_end(fbe_begin)
5113 return fbe_value
5114
5115 # Get the struct fields values
5116 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
StructOptionalClass · 0.70
read_uint32Method · 0.45

Tested by

no test coverage detected