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

Method getCStringFromAddress

src/pystack/_pystack/process.cpp:656–667  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

654}
655
656std::string
657AbstractProcessManager::getCStringFromAddress(remote_addr_t addr) const
658{
659 std::vector<char> result;
660 char character = 0;
661 size_t position = 0;
662 do {
663 copyObjectFromProcess(addr + ((position++) * sizeof(char)), &character);
664 result.push_back(character);
665 } while (character != 0);
666 return std::string(result.cbegin(), result.cend() - 1);
667}
668
669AbstractProcessManager::InterpreterStatus
670AbstractProcessManager::isInterpreterActive() const

Callers 1

ObjectMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected