1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Move protocol specific sizes to common header.

This commit is contained in:
Bartosz Taudul
2017-09-13 22:56:55 +02:00
parent a31ab6a256
commit 16dd561029
2 changed files with 19 additions and 4 deletions
+18
View File
@@ -0,0 +1,18 @@
#ifndef __TRACYPROTOCOL_HPP__
#define __TRACYPROTOCOL_HPP__
#include <limits>
#include <stdint.h>
#include "../common/tracy_lz4.hpp"
namespace tracy
{
enum { TargetFrameSize = 64000 };
enum { LZ4Size = LZ4_COMPRESSBOUND( TargetFrameSize ) };
static_assert( LZ4Size <= std::numeric_limits<uint16_t>::max(), "LZ4Size greater than uint16_t" );
}
#endif