mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 05:47:56 -07:00
d10a0b440f
Now that SFML's packet class can properly handle 64-bit values, we don't need a helper function just to write values to the packets.
34 lines
591 B
C++
34 lines
591 B
C++
// Copyright 2018 Dolphin Emulator Project
|
|
// Licensed under GPLv2+
|
|
// Refer to the license.txt file included.
|
|
|
|
#include "Common/SFMLHelper.h"
|
|
|
|
#include <SFML/Network/Packet.hpp>
|
|
|
|
namespace Common
|
|
{
|
|
// This only exists as a helper for BigEndianValue
|
|
u16 PacketReadU16(sf::Packet& packet)
|
|
{
|
|
u16 tmp;
|
|
packet >> tmp;
|
|
return tmp;
|
|
}
|
|
|
|
// This only exists as a helper for BigEndianValue
|
|
u32 PacketReadU32(sf::Packet& packet)
|
|
{
|
|
u32 tmp;
|
|
packet >> tmp;
|
|
return tmp;
|
|
}
|
|
|
|
u64 PacketReadU64(sf::Packet& packet)
|
|
{
|
|
sf::Uint64 value;
|
|
packet >> value;
|
|
return value;
|
|
}
|
|
} // namespace Common
|