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

Method get

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

Source from the content-addressed store, hash-verified

713
714 # Get the value
715 def get(self, defaults=None):
716 if defaults is None:
717 defaults = 0
718
719 if (self._buffer.offset + self.fbe_offset + self.fbe_size) > self._buffer.size:
720 return defaults
721
722 return self.read_int32(self.fbe_offset)
723
724 # Set the value
725 def set(self, value):

Callers

nothing calls this directly

Calls 1

read_int32Method · 0.45

Tested by

no test coverage detected