MCPcopy Create free account
hub / github.com/bloomberg/pystack / readChunk

Method readChunk

src/pystack/_pystack/mem.cpp:228–236  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

226}
227
228ssize_t
229ProcessMemoryManager::readChunk(remote_addr_t addr, size_t len, char* dst) const
230{
231 if (d_memfile || getenv("_PYSTACK_NO_PROCESS_VM_READV") != nullptr) {
232 return readChunkThroughMemFile(addr, len, dst);
233 } else {
234 return readChunkDirect(addr, len, dst);
235 }
236}
237
238ssize_t
239ProcessMemoryManager::readChunkDirect(remote_addr_t addr, size_t len, char* dst) const

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected