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

Method get

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

Source from the content-addressed store, hash-verified

267
268 # Get the value
269 def get(self, defaults=None):
270 if defaults is None:
271 defaults = EnumEmpty()
272
273 if (self._buffer.offset + self.fbe_offset + self.fbe_size) > self._buffer.size:
274 return defaults
275
276 return EnumEmpty(self.read_int32(self.fbe_offset))
277
278 # Set the value
279 def set(self, value):

Callers

nothing calls this directly

Calls 2

EnumEmptyClass · 0.70
read_int32Method · 0.45

Tested by

no test coverage detected