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

Function must_read

convert-dense.py:731–735  ·  view source on GitHub ↗
(fp: IO[bytes], length: int)

Source from the content-addressed store, hash-verified

729
730
731def must_read(fp: IO[bytes], length: int) -> bytes:
732 ret = fp.read(length)
733 if len(ret) < length:
734 raise Exception("unexpectedly reached end of file")
735 return ret
736
737
738@functools.lru_cache(maxsize=None)

Callers

nothing calls this directly

Calls 1

readMethod · 0.45

Tested by

no test coverage detected