Lines Matching refs:src_size
59 int compress_blob_xz(const void *src, uint64_t src_size,
74 assert(src_size > 0);
82 if (src_size < 80)
86 src, src_size, dst, &out_pos, dst_alloc_size);
97 int compress_blob_lz4(const void *src, uint64_t src_size,
103 assert(src_size > 0);
111 if (src_size < 9)
114 r = LZ4_compress_limitedOutput(src, dst + 8, src_size, (int) dst_alloc_size - 8);
118 *(le64_t*) dst = htole64(src_size);
128 int decompress_blob_xz(const void *src, uint64_t src_size,
137 assert(src_size > 0);
147 space = MIN(src_size * 2, dst_max ?: (size_t) -1);
152 s.avail_in = src_size;
188 int decompress_blob_lz4(const void *src, uint64_t src_size,
196 assert(src_size > 0);
202 if (src_size <= 8)
217 r = LZ4_decompress_safe(src + 8, out, src_size - 8, size);
229 const void *src, uint64_t src_size,
232 return decompress_blob_xz(src, src_size,
235 return decompress_blob_lz4(src, src_size,
242 int decompress_startswith_xz(const void *src, uint64_t src_size,
256 assert(src_size > 0);
270 s.avail_in = src_size;
301 int decompress_startswith_lz4(const void *src, uint64_t src_size,
314 assert(src_size > 0);
320 if (src_size <= 8)
326 r = LZ4_decompress_safe_partial(src + 8, *buffer, src_size - 8,
334 r = decompress_blob_lz4(src, src_size, buffer, buffer_size, &size, 0);
351 const void *src, uint64_t src_size,
356 return decompress_startswith_xz(src, src_size,
361 return decompress_startswith_lz4(src, src_size,