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

Allow changing lz4 size type.

This commit is contained in:
Bartosz Taudul
2017-09-13 22:58:04 +02:00
parent 16dd561029
commit efd66bb609
2 changed files with 7 additions and 5 deletions
+3 -1
View File
@@ -9,9 +9,11 @@
namespace tracy
{
using lz4sz_t = uint16_t;
enum { TargetFrameSize = 64000 };
enum { LZ4Size = LZ4_COMPRESSBOUND( TargetFrameSize ) };
static_assert( LZ4Size <= std::numeric_limits<uint16_t>::max(), "LZ4Size greater than uint16_t" );
static_assert( LZ4Size <= std::numeric_limits<lz4sz_t>::max(), "LZ4Size greater than lz4sz_t" );
}