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

Method get

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

Source from the content-addressed store, hash-verified

626
627 # Get the value
628 def get(self, defaults=None):
629 if defaults is None:
630 defaults = 0
631
632 if (self._buffer.offset + self.fbe_offset + self.fbe_size) > self._buffer.size:
633 return defaults
634
635 return self.read_uint8(self.fbe_offset)
636
637 # Set the value
638 def set(self, value):

Callers

nothing calls this directly

Calls 1

read_uint8Method · 0.45

Tested by

no test coverage detected