| 499 | } |
| 500 | |
| 501 | void enqueue(ChannelDataPtr channelData) override { |
| 502 | if (channelData) { |
| 503 | enqueueCount++; |
| 504 | // Snapshot the encoded bytes now, before poll() can clear them |
| 505 | const auto& src = channelData->getData(); |
| 506 | fl::vector<uint8_t> copy; |
| 507 | copy.insert(copy.end(), src.begin(), src.end()); |
| 508 | capturedData.push_back(fl::move(copy)); |
| 509 | } |
| 510 | } |
| 511 | |
| 512 | void show() override { |
| 513 | showCount++; |