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

Method get

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

Source from the content-addressed store, hash-verified

500
501 # Get the value
502 def get(self, defaults=None):
503 if defaults is None:
504 defaults = EnumUInt8()
505
506 if (self._buffer.offset + self.fbe_offset + self.fbe_size) > self._buffer.size:
507 return defaults
508
509 return EnumUInt8(self.read_uint8(self.fbe_offset))
510
511 # Set the value
512 def set(self, value):

Callers

nothing calls this directly

Calls 2

EnumUInt8Class · 0.70
read_uint8Method · 0.45

Tested by

no test coverage detected