2018-04-21 12:53:40 +00:00
|
|
|
#ifndef __TRACYFILEHEADER_HPP__
|
|
|
|
#define __TRACYFILEHEADER_HPP__
|
|
|
|
|
2022-04-26 19:23:22 +00:00
|
|
|
#include <stdint.h>
|
|
|
|
|
2022-07-17 11:41:40 +00:00
|
|
|
#include "../public/common/TracyForceInline.hpp"
|
2019-08-19 20:55:37 +00:00
|
|
|
|
2018-04-21 12:53:40 +00:00
|
|
|
namespace tracy
|
|
|
|
{
|
|
|
|
|
2024-06-02 10:27:17 +00:00
|
|
|
static const uint8_t TracyHeader[4] = { 't', 'r', 253, 'P' };
|
|
|
|
static const uint8_t Lz4Header[4] = { 't', 'l', 'Z', 4 };
|
|
|
|
static const uint8_t ZstdHeader[4] = { 't', 'Z', 's', 't' };
|
2018-04-21 12:53:40 +00:00
|
|
|
|
2019-08-19 20:55:37 +00:00
|
|
|
static constexpr tracy_force_inline int FileVersion( uint8_t h5, uint8_t h6, uint8_t h7 )
|
|
|
|
{
|
|
|
|
return ( h5 << 16 ) | ( h6 << 8 ) | h7;
|
|
|
|
}
|
|
|
|
|
2018-04-21 12:53:40 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|