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

Method get

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

Source from the content-addressed store, hash-verified

3080
3081 # Get the struct value
3082 def get(self, fbe_value=None):
3083 if fbe_value is None:
3084 fbe_value = BalanceMessage()
3085
3086 fbe_begin = self.get_begin()
3087 if fbe_begin == 0:
3088 return fbe_value
3089
3090 fbe_struct_size = self.read_uint32(0)
3091 self.get_fields(fbe_value, fbe_struct_size)
3092 self.get_end(fbe_begin)
3093 return fbe_value
3094
3095 # Get the struct fields values
3096 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
BalanceMessageClass · 0.70
read_uint32Method · 0.45

Tested by

no test coverage detected