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

Method get

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

Source from the content-addressed store, hash-verified

800
801 # Get the value
802 def get(self, defaults=None):
803 if defaults is None:
804 defaults = 0
805
806 if (self._buffer.offset + self.fbe_offset + self.fbe_size) > self._buffer.size:
807 return defaults
808
809 return self.read_uint64(self.fbe_offset)
810
811 # Set the value
812 def set(self, value):

Callers

nothing calls this directly

Calls 1

read_uint64Method · 0.45

Tested by

no test coverage detected