///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
| 58 | |
| 59 | //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// |
| 60 | void FSecure::C3::QualityOfService::Packet::PushNextChunk(uint32_t chunkId, uint32_t expectedSize, ByteVector chunk) |
| 61 | { |
| 62 | if (auto it = m_Chunks.find(chunkId); it != m_Chunks.end()) |
| 63 | throw std::runtime_error{ OBF("QoS error. Received chunk of packet was already set") }; |
| 64 | |
| 65 | m_Size += static_cast<uint32_t>(chunk.size()); |
| 66 | m_Chunks.emplace(chunkId, std::move(chunk)); |
| 67 | } |
| 68 | |
| 69 | //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// |
| 70 | FSecure::ByteVector FSecure::C3::QualityOfService::Packet::Read() |
no test coverage detected