From 658ab8fca1c7bbc191d63c17ee751344a591f3ce Mon Sep 17 00:00:00 2001 From: Hamid Zare Date: Thu, 11 Jul 2019 14:34:52 -0700 Subject: [PATCH] changed the input text to something more compression friendly --- examples/simple_buffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/simple_buffer.c b/examples/simple_buffer.c index 027fc85..62409d0 100644 --- a/examples/simple_buffer.c +++ b/examples/simple_buffer.c @@ -38,7 +38,7 @@ int main(void) { /* Compression */ // We'll store some text into a variable pointed to by *src to be compressed later. - const char* const src = "Lorem ipsum dolor sit amet, consectetur adipiscing elit."; + const char* const src = "Lorem ipsum dolor sit amet, hhhhhhhhhhhhhhhhhhhhhhh"; // The compression function needs to know how many bytes exist. Since we're using a string, we can use strlen() + 1 (for \0). const int src_size = (int)(strlen(src) + 1); // LZ4 provides a function that will tell you the maximum size of compressed output based on input data via LZ4_compressBound(). -- 2.7.4