Lines Matching defs:src

59 int compress_blob_xz(const void *src, uint64_t src_size,
73 assert(src);
86 src, src_size, dst, &out_pos, dst_alloc_size);
97 int compress_blob_lz4(const void *src, uint64_t src_size,
102 assert(src);
114 r = LZ4_compress_limitedOutput(src, dst + 8, src_size, (int) dst_alloc_size - 8);
128 int decompress_blob_xz(const void *src, uint64_t src_size,
136 assert(src);
151 s.next_in = src;
188 int decompress_blob_lz4(const void *src, uint64_t src_size,
195 assert(src);
205 size = le64toh( *(le64_t*)src );
206 if (size < 0 || (unsigned) size != le64toh(*(le64_t*)src))
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,
255 assert(src);
269 s.next_in = src;
301 int decompress_startswith_lz4(const void *src, uint64_t src_size,
313 assert(src);
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,
451 char *src = NULL;
479 src = mmap(NULL, st.st_size, PROT_READ, MAP_PRIVATE, fdf, 0);
480 if (src == MAP_FAILED)
490 src + total_in, k, &options);
531 munmap(src, st.st_size);
618 char *src;
634 src = mmap(NULL, st.st_size, PROT_READ, MAP_PRIVATE, in, 0);
635 if (src == MAP_FAILED)
642 c = LZ4F_decompress(ctx, buf, &produced, src + total_in, &used, NULL);
666 munmap(src, st.st_size);