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

Method has_value

projects/Python/proto/fbe.py:1215–1220  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1213 # Checks if the object contains a value
1214 @property
1215 def has_value(self):
1216 if (self._buffer.offset + self.fbe_offset + self.fbe_size) > self._buffer.size:
1217 return False
1218
1219 fbe_has_value = self.read_uint8(self.fbe_offset)
1220 return fbe_has_value != 0
1221
1222 # Get the base field model value
1223 @property

Callers 7

__bool__Method · 0.95
test_create.cppFile · 0.45
test_clone.cppFile · 0.45
test_extending.cppFile · 0.45

Calls 1

read_uint8Method · 0.45

Tested by

no test coverage detected