* @brief Returns a copy of the bytes captured for @p deviceId since the last arm. */
| 635 | * @brief Returns a copy of the bytes captured for @p deviceId since the last arm. |
| 636 | */ |
| 637 | QByteArray 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, |