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

Method get

projects/Python/proto/test.py:71–78  ·  view source on GitHub ↗
(self, defaults=None)

Source from the content-addressed store, hash-verified

69
70 # Get the value
71 def get(self, defaults=None):
72 if defaults is None:
73 defaults = EnumSimple()
74
75 if (self._buffer.offset + self.fbe_offset + self.fbe_size) > self._buffer.size:
76 return defaults
77
78 return EnumSimple(self.read_int32(self.fbe_offset))
79
80 # Set the value
81 def set(self, value):

Callers

nothing calls this directly

Calls 2

EnumSimpleClass · 0.70
read_int32Method · 0.45

Tested by

no test coverage detected