Skip to content
This repository was archived by the owner on Mar 23, 2025. It is now read-only.

Commit ae0acb8

Browse files
committed
Use LZ4 HC level 6 in embed.
1 parent 159a030 commit ae0acb8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

helpers/embed.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#include <format>
2-
#include <lz4.h>
2+
#include <lz4hc.h>
33
#include <stdint.h>
44
#include <stdio.h>
55

@@ -39,7 +39,7 @@ int main( int argc, char** argv )
3939

4040
const auto lz4szMax = LZ4_compressBound( sz );
4141
auto lz4data = new uint8_t[lz4szMax];
42-
const auto lz4sz = LZ4_compress_default( (const char*)data, (char*)lz4data, sz, lz4szMax );
42+
const auto lz4sz = LZ4_compress_HC( (const char*)data, (char*)lz4data, sz, lz4szMax, 6 );
4343
delete[] data;
4444

4545
FILE* hdr = fopen( std::format( "{}.hpp", destination ).c_str(), "wb" );

0 commit comments

Comments
 (0)