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

Method get

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

EnumByteClass · 0.70
read_byteMethod · 0.45

Tested by

no test coverage detected