Communication::Packet refactored out to Packet

This commit is contained in:
Paul Hollinsky
2018-09-25 17:40:33 -04:00
parent d27b516894
commit 585abe7cbb
6 changed files with 70 additions and 47 deletions
+2 -2
View File
@@ -103,8 +103,8 @@ bool Packetizer::input(const std::vector<uint8_t>& inputBytes) {
return processedPackets.size() > 0;
}
std::vector<std::shared_ptr<Communication::Packet>> Packetizer::output() {
std::vector<std::shared_ptr<Packet>> Packetizer::output() {
auto ret = std::move(processedPackets);
processedPackets = std::vector<std::shared_ptr<Communication::Packet>>(); // Reset the vector
processedPackets = std::vector<std::shared_ptr<Packet>>(); // Reset the vector
return ret;
}