mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-04-27 06:47:45 +00:00
28 lines
546 B
C++
28 lines
546 B
C++
#ifndef _UTIL_H
|
|
#define _UTIL_H
|
|
|
|
#include <stdint.h>
|
|
#include <string>
|
|
|
|
namespace Core {
|
|
namespace Util {
|
|
|
|
std::string binaryToHexString( uint8_t* pBinData, uint16_t size );
|
|
|
|
std::string binaryToHexDump( uint8_t* pBinData, uint16_t size );
|
|
|
|
std::string intToHexString( uint64_t intValue, uint8_t width = 2 );
|
|
|
|
std::string toLowerCopy( const std::string& inStr );
|
|
|
|
uint64_t getTimeMs();
|
|
|
|
int64_t getTimeSeconds();
|
|
|
|
uint64_t getEorzeanTimeStamp();
|
|
|
|
void valueToFlagByteIndexValue( uint32_t inVal, uint8_t& outVal, uint16_t& outIndex );
|
|
}
|
|
}
|
|
|
|
#endif
|