
Buffer ParityFEC::Decode(const std::vector<Buffer>& dataPackets, const Buffer& fecPacket)
{
    std::size_t maxSize = 0;
    for (const Buffer& pkt : dataPackets)
    {
        maxSize = std::max(maxSize, pkt.Length());
    }