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

Method get

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

Source from the content-addressed store, hash-verified

1835
1836 # Get the struct value
1837 def get(self, fbe_value=None):
1838 if fbe_value is None:
1839 fbe_value = StructSimple()
1840
1841 fbe_begin = self.get_begin()
1842 if fbe_begin == 0:
1843 return fbe_value
1844
1845 fbe_struct_size = self.read_uint32(0)
1846 self.get_fields(fbe_value, fbe_struct_size)
1847 self.get_end(fbe_begin)
1848 return fbe_value
1849
1850 # Get the struct fields values
1851 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
StructSimpleClass · 0.70
read_uint32Method · 0.45

Tested by

no test coverage detected