2017-08-08 13:53:47 +02:00
|
|
|
#ifndef _UTIL_H
|
|
|
|
#define _UTIL_H
|
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
#include <boost/format.hpp>
|
|
|
|
|
|
|
|
namespace Core {
|
|
|
|
namespace Util {
|
|
|
|
|
|
|
|
std::string binaryToHexString( uint8_t* pBinData, uint16_t size );
|
|
|
|
|
2017-10-17 22:52:12 +02:00
|
|
|
std::string binaryToHexDump( uint8_t* pBinData, uint16_t size );
|
2017-10-17 20:13:01 +02:00
|
|
|
|
2017-08-08 13:53:47 +02:00
|
|
|
uint64_t getTimeMs();
|
|
|
|
|
2018-02-01 00:16:47 +01:00
|
|
|
int64_t getTimeSeconds();
|
2017-08-15 19:47:58 +09:00
|
|
|
|
2017-08-08 13:53:47 +02:00
|
|
|
uint64_t getEorzeanTimeStamp();
|
|
|
|
|
|
|
|
void valueToFlagByteIndexValue( uint32_t inVal, uint8_t& outVal, uint16_t& outIndex );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|