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

Method get

projects/Python/proto/test.py:418–425  ·  view source on GitHub ↗
(self, defaults=None)

Source from the content-addressed store, hash-verified

416
417 # Get the value
418 def get(self, defaults=None):
419 if defaults is None:
420 defaults = FlagsSimple()
421
422 if (self._buffer.offset + self.fbe_offset + self.fbe_size) > self._buffer.size:
423 return defaults
424
425 return FlagsSimple(self.read_int32(self.fbe_offset))
426
427 # Set the value
428 def set(self, value):

Callers

nothing calls this directly

Calls 2

FlagsSimpleClass · 0.70
read_int32Method · 0.45

Tested by

no test coverage detected