mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-12-29 04:10:56 +01:00
c5b4e1a5f6
Switch to using additional overloads of sf::Packet, so we can eliminate some of the messy code and just use the normal syntax for BigEndianValue. We can't avoid helper functions with u64 due to SFML's non-standard way of defining 64-bit integer types.
23 lines
535 B
C++
23 lines
535 B
C++
// Copyright 2018 Dolphin Emulator Project
|
|
// Licensed under GPLv2+
|
|
// Refer to the license.txt file included.
|
|
|
|
#pragma once
|
|
|
|
#include "Common/CommonTypes.h"
|
|
#include "Common/Swap.h"
|
|
|
|
namespace sf
|
|
{
|
|
class Packet;
|
|
}
|
|
|
|
sf::Packet& operator>>(sf::Packet& packet, Common::BigEndianValue<u16>& data);
|
|
sf::Packet& operator>>(sf::Packet& packet, Common::BigEndianValue<u32>& data);
|
|
sf::Packet& operator>>(sf::Packet& packet, Common::BigEndianValue<u64>& data);
|
|
|
|
namespace Common
|
|
{
|
|
u64 PacketReadU64(sf::Packet& packet);
|
|
} // namespace Common
|