Lines Matching defs:size
44 int import_uncompress_detect(ImportCompress *c, const void *data, size_t size) {
62 if (size < MAX3(sizeof(xz_signature),
99 int import_uncompress(ImportCompress *c, const void *data, size_t size, ImportCompressCallback callback, void *userdata) {
105 r = import_uncompress_detect(c, data, size);
112 if (size <= 0)
120 r = callback(data, size, userdata);
128 c->xz.avail_in = size;
150 c->gzip.avail_in = size;
171 c->bzip2.avail_in = size;
261 int import_compress(ImportCompress *c, const void *data, size_t size, void **buffer, size_t *buffer_size, size_t *buffer_allocated) {
272 if (size <= 0)
284 c->xz.avail_in = size;
308 c->gzip.avail_in = size;
330 c->bzip2.avail_in = size;
351 if (*buffer_allocated < size) {
354 p = realloc(*buffer, size);
359 *buffer_allocated = size;
362 memcpy(*buffer, data, size);
363 *buffer_size = size;