MCPcopy Create free account
hub / github.com/Kitware/CMake / getPayload

Method getPayload

Utilities/cmcppdap/src/session.cpp:59–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57 }
58
59 std::function<void()> getPayload() override {
60 auto request = reader.read();
61 if (request.size() > 0) {
62 if (auto payload = processMessage(request)) {
63 return payload;
64 }
65 }
66 return {};
67 }
68
69 void connect(const std::shared_ptr<dap::Reader>& r,
70 const std::shared_ptr<dap::Writer>& w) override {

Callers 2

TEST_FFunction · 0.80
cmDebuggerAdapterMethod · 0.80

Calls 2

readMethod · 0.45
sizeMethod · 0.45

Tested by 1

TEST_FFunction · 0.64