tracy/server/TracyFileHeader.hpp

22 lines
419 B
C++
Raw Permalink Normal View History

#ifndef __TRACYFILEHEADER_HPP__
#define __TRACYFILEHEADER_HPP__
2022-04-26 19:23:22 +00:00
#include <stdint.h>
#include "../public/common/TracyForceInline.hpp"
namespace tracy
{
2020-02-08 14:43:01 +00:00
static const char Lz4Header[4] = { 't', 'l', 'Z', 4 };
static const char ZstdHeader[4] = { 't', 'Z', 's', 't' };
static constexpr tracy_force_inline int FileVersion( uint8_t h5, uint8_t h6, uint8_t h7 )
{
return ( h5 << 16 ) | ( h6 << 8 ) | h7;
}
}
#endif