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

Method get

projects/Python/proto/protoex.py:62–69  ·  view source on GitHub ↗
(self, defaults=None)

Source from the content-addressed store, hash-verified

60
61 # Get the value
62 def get(self, defaults=None):
63 if defaults is None:
64 defaults = OrderSide()
65
66 if (self._buffer.offset + self.fbe_offset + self.fbe_size) > self._buffer.size:
67 return defaults
68
69 return OrderSide(self.read_byte(self.fbe_offset))
70
71 # Set the value
72 def set(self, value):

Callers

nothing calls this directly

Calls 2

OrderSideClass · 0.70
read_byteMethod · 0.45

Tested by

no test coverage detected