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

Method set

projects/Python/proto/fbe.py:2411–2417  ·  view source on GitHub ↗
(self, value)

Source from the content-addressed store, hash-verified

2409
2410 # Set the value
2411 def set(self, value):
2412 assert ((self._buffer.offset + self.fbe_offset + self.fbe_size) <= self._buffer.size), "Model is broken!"
2413 if (self._buffer.offset + self.fbe_offset + self.fbe_size) > self._buffer.size:
2414 return 0
2415
2416 self.write_uint64(self.fbe_offset, value)
2417 return self.fbe_size
2418
2419
2420# Fast Binary Encoding uuid final model

Callers

nothing calls this directly

Calls 1

write_uint64Method · 0.45

Tested by

no test coverage detected