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

Function uv_write

Source/cmUVHandlePtr.cxx:336–346  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

334}
335
336int uv_write(uv_stream_t* handle, uv_buf_t const bufs[], unsigned int nbufs,
337 std::weak_ptr<std::function<void(int)>> cb)
338{
339 auto req = cm::make_unique<write_req>(std::move(cb));
340 int status = uv_write(req.get(), handle, bufs, nbufs, write_req_cb);
341 if (status == 0) {
342 // Ownership has been transferred to the event loop.
343 static_cast<void>(req.release());
344 }
345 return status;
346}
347}

Callers 6

writeDataToStreamPipeFunction · 0.50
testUVIStreamFunction · 0.50
testUVStreamReadFunction · 0.50
testUVStreamReadLeakFunction · 0.50
testWriteCallbackFunction · 0.50
SendTokenMethod · 0.50

Calls 3

moveFunction · 0.85
getMethod · 0.45
releaseMethod · 0.45

Tested by 5

writeDataToStreamPipeFunction · 0.40
testUVIStreamFunction · 0.40
testUVStreamReadFunction · 0.40
testUVStreamReadLeakFunction · 0.40
testWriteCallbackFunction · 0.40

Used in the wild real call sites across dependent graphs

searching dependent graphs…