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

Method get

projects/Python/proto/fbe.py:889–896  ·  view source on GitHub ↗
(self, defaults=None)

Source from the content-addressed store, hash-verified

887
888 # Get the value
889 def get(self, defaults=None):
890 if defaults is None:
891 defaults = 0
892
893 if (self._buffer.offset + self.fbe_offset + self.fbe_size) > self._buffer.size:
894 return defaults
895
896 return self.read_uint64(self.fbe_offset)
897
898 # Set the value
899 def set(self, value):

Callers

nothing calls this directly

Calls 1

read_uint64Method · 0.45

Tested by

no test coverage detected