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

Method get

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

Source from the content-addressed store, hash-verified

597
598 # Get the value
599 def get(self, defaults=None):
600 if defaults is None:
601 defaults = FlagsTyped()
602
603 if (self._buffer.offset + self.fbe_offset + self.fbe_size) > self._buffer.size:
604 return defaults
605
606 return FlagsTyped(self.read_uint64(self.fbe_offset))
607
608 # Set the value
609 def set(self, value):

Callers

nothing calls this directly

Calls 2

FlagsTypedClass · 0.70
read_uint64Method · 0.45

Tested by

no test coverage detected