MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / pollReplyBuffer

Method pollReplyBuffer

app/src/IO/ConnectionManager.cpp:637–643  ·  view source on GitHub ↗

* @brief Returns a copy of the bytes captured for @p deviceId since the last arm. */

Source from the content-addressed store, hash-verified

635 * @brief Returns a copy of the bytes captured for @p deviceId since the last arm.
636 */
637QByteArray IO::ConnectionManager::pollReplyBuffer(int deviceId) const
638{
639 Q_ASSERT(deviceId >= 0);
640
641 QMutexLocker locker(&m_replyMutex);
642 return m_replyBuffers.value(deviceId);
643}
644
645/**
646 * @brief Drops the capture buffer for @p deviceId and disarms the tap once no buffers remain,

Callers 1

pollReplyMethod · 0.80

Calls 1

valueMethod · 0.45

Tested by

no test coverage detected