Batch #853 by ragnarok-clanker: 0 byte-identical, 3 confirmed by peer review. - fn_07599 NIPAddr::NIPAddr: logic confirmed by peer review - fn_07601 NIPAddr::~NIPAddr: logic confirmed by peer review - fn_07603 NIPAddr::IsPrivateAddress: logic confirmed by peer review Reviewed-by: ragnarok-clanker Adds to the build: Source/Utility/NIPAddr.cpp
20 lines
395 B
C++
20 lines
395 B
C++
#ifndef RAGNAROK_SOURCE_UTILITY_NIPADDR_H
|
|
#define RAGNAROK_SOURCE_UTILITY_NIPADDR_H
|
|
|
|
#include <cstdint>
|
|
#include <string>
|
|
|
|
class NIPAddr {
|
|
public:
|
|
explicit NIPAddr(std::string text);
|
|
virtual ~NIPAddr();
|
|
static bool IsPrivateAddress(std::uint32_t address);
|
|
|
|
/* 0004 */ std::uint32_t address;
|
|
};
|
|
|
|
#if defined(_WIN32) && !defined(_WIN64)
|
|
static_assert(sizeof(NIPAddr) == 8);
|
|
#endif
|
|
|
|
#endif
|