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

Method get

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

Source from the content-addressed store, hash-verified

510
511 # Get the value
512 def get(self, defaults=None):
513 if defaults is None:
514 defaults = 0
515
516 if (self._buffer.offset + self.fbe_offset + self.fbe_size) > self._buffer.size:
517 return defaults
518
519 return self.read_byte(self.fbe_offset)
520
521 # Set the value
522 def set(self, value):

Callers

nothing calls this directly

Calls 1

read_byteMethod · 0.45

Tested by

no test coverage detected