Reorganized and cleaned up the solution.

This commit is contained in:
HikikoMarmy
2026-03-02 12:37:07 +00:00
parent 8012f30170
commit d4dfbddf69
175 changed files with 1516 additions and 1136 deletions

View File

@@ -0,0 +1,25 @@
#pragma once
#include <cstdint>
#include <string>
#include <WinSock2.h>
namespace Util
{
int32_t round_up( int32_t numToRound, int32_t multiple );
int32_t round_down( int32_t numToRound, int32_t multiple );
uint16_t ByteSwap( uint16_t val );
uint32_t ByteSwap( uint32_t val );
template <typename T>
bool IsInRange( T value, T min, T max )
{
return ( value >= min && value <= max );
}
std::string IPFromAddr( const sockaddr_in &addr );
std::string WideToUTF8( const std::wstring &wstr );
std::wstring UTF8ToWide( const std::string &str );
}