MCPcopy Create free account
hub / github.com/apache/fory / check_readable_bytes

Method check_readable_bytes

python/pyfory/context.py:509–515  ·  view source on GitHub ↗
(self, length)

Source from the content-addressed store, hash-verified

507 return getattr(buffer, name)
508
509 def check_readable_bytes(self, length):
510 if length < 0:
511 raise ValueError(f"Readable byte count {length} is negative")
512 if length == 0:
513 return
514 reader_index = self.buffer.get_reader_index()
515 self.buffer.check_bound(reader_index, length)
516
517 def prepare(
518 self,

Callers 2

readMethod · 0.80
readMethod · 0.80

Calls 1

check_boundMethod · 0.80

Tested by

no test coverage detected