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

Method get

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

Source from the content-addressed store, hash-verified

696
697 # Get the value
698 def get(self, defaults=None):
699 if defaults is None:
700 defaults = FlagsEmpty()
701
702 if (self._buffer.offset + self.fbe_offset + self.fbe_size) > self._buffer.size:
703 return defaults
704
705 return FlagsEmpty(self.read_int32(self.fbe_offset))
706
707 # Set the value
708 def set(self, value):

Callers

nothing calls this directly

Calls 2

FlagsEmptyClass · 0.70
read_int32Method · 0.45

Tested by

no test coverage detected