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

Method write

Utilities/cmcppdap/src/io.cpp:189–198  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

187 bool isOpen() override { return w->isOpen(); }
188 void close() override { w->close(); }
189 bool write(const void* buffer, size_t n) override {
190 if (!w->write(buffer, n)) {
191 return false;
192 }
193 auto chars = reinterpret_cast<const char*>(buffer);
194 std::string buf = prefix;
195 buf.append(chars, chars + n);
196 s->write(buf.data(), buf.size());
197 return true;
198 }
199
200 private:
201 const std::shared_ptr<dap::Writer> w;

Callers

nothing calls this directly

Calls 4

appendMethod · 0.80
writeMethod · 0.45
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected