MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / drain

Function drain

scripts/test_mcp_interactive.py:66–68  ·  view source on GitHub ↗
(stream: BinaryIO, chunks: list[bytes])

Source from the content-addressed store, hash-verified

64
65
66def drain(stream: BinaryIO, chunks: list[bytes]) -> None:
67 for chunk in iter(lambda: stream.read(8192), b""):
68 chunks.append(chunk)
69
70
71def cache_log_tail(name: str, limit: int = 16384) -> str:

Callers

nothing calls this directly

Calls 1

readMethod · 0.45

Tested by

no test coverage detected