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

Method get

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

Source from the content-addressed store, hash-verified

1148
1149 # Get the value
1150 def get(self, defaults=None):
1151 if defaults is None:
1152 defaults = EnumUInt64()
1153
1154 if (self._buffer.offset + self.fbe_offset + self.fbe_size) > self._buffer.size:
1155 return defaults
1156
1157 return EnumUInt64(self.read_uint64(self.fbe_offset))
1158
1159 # Set the value
1160 def set(self, value):

Callers

nothing calls this directly

Calls 2

EnumUInt64Class · 0.70
read_uint64Method · 0.45

Tested by

no test coverage detected