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

Method get

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

Source from the content-addressed store, hash-verified

8711
8712 # Get the struct value
8713 def get(self, fbe_value=None):
8714 if fbe_value is None:
8715 fbe_value = StructBytes()
8716
8717 fbe_begin = self.get_begin()
8718 if fbe_begin == 0:
8719 return fbe_value
8720
8721 fbe_struct_size = self.read_uint32(0)
8722 self.get_fields(fbe_value, fbe_struct_size)
8723 self.get_end(fbe_begin)
8724 return fbe_value
8725
8726 # Get the struct fields values
8727 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
StructBytesClass · 0.70
read_uint32Method · 0.45

Tested by

no test coverage detected