MCPcopy Create free account
hub / github.com/Tiiny-AI/PowerInfer / must_read

Function must_read

convert.py:761–765  ·  view source on GitHub ↗
(fp: IO[bytes], length: int)

Source from the content-addressed store, hash-verified

759
760
761def must_read(fp: IO[bytes], length: int) -> bytes:
762 ret = fp.read(length)
763 if len(ret) < length:
764 raise Exception("unexpectedly reached end of file")
765 return ret
766
767
768@functools.lru_cache(maxsize=None)

Callers

nothing calls this directly

Calls 1

readMethod · 0.45

Tested by

no test coverage detected