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

Method get

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

Source from the content-addressed store, hash-verified

155
156 # Get the value
157 def get(self, defaults=None):
158 if defaults is None:
159 defaults = OrderType()
160
161 if (self._buffer.offset + self.fbe_offset + self.fbe_size) > self._buffer.size:
162 return defaults
163
164 return OrderType(self.read_byte(self.fbe_offset))
165
166 # Set the value
167 def set(self, value):

Callers

nothing calls this directly

Calls 2

OrderTypeClass · 0.70
read_byteMethod · 0.45

Tested by

no test coverage detected