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

Method get

projects/Python/proto/enums.py:178–185  ·  view source on GitHub ↗
(self, defaults=None)

Source from the content-addressed store, hash-verified

176
177 # Get the value
178 def get(self, defaults=None):
179 if defaults is None:
180 defaults = EnumChar()
181
182 if (self._buffer.offset + self.fbe_offset + self.fbe_size) > self._buffer.size:
183 return defaults
184
185 return EnumChar(self.read_uint8(self.fbe_offset))
186
187 # Set the value
188 def set(self, value):

Callers

nothing calls this directly

Calls 2

EnumCharClass · 0.70
read_uint8Method · 0.45

Tested by

no test coverage detected