Home
last modified time | relevance | path

Searched refs:max_dst_size (Results 1 – 2 of 2) sorted by relevance

/external/lz4/examples/
Dcompress_functions.c116 const size_t max_dst_size, in bench() argument
132 rv = LZ4_compress_default(src, dst, src_size, max_dst_size); in bench()
135 if (memcmp(known_good_dst, dst, max_dst_size) != 0) in bench()
139 LZ4_compress_default(src, dst, src_size, max_dst_size); in bench()
145 rv = LZ4_compress_fast(src, dst, src_size, max_dst_size, acceleration); in bench()
148 if (memcmp(known_good_dst, dst, max_dst_size) != 0) in bench()
152 LZ4_compress_fast(src, dst, src_size, max_dst_size, acceleration); in bench()
158 rv = LZ4_compress_fast_extState(&state, src, dst, src_size, max_dst_size, acceleration); in bench()
161 if (memcmp(known_good_dst, dst, max_dst_size) != 0) in bench()
165 LZ4_compress_fast_extState(&state, src, dst, src_size, max_dst_size, acceleration); in bench()
[all …]
Dsimple_buffer.c43 const size_t max_dst_size = LZ4_compressBound(src_size); in main() local
45 char *compressed_data = malloc(max_dst_size); in main()
51 return_value = LZ4_compress_default(src, compressed_data, src_size, max_dst_size); in main()