Lines Matching refs:fragments
46 zip_uint8_t **fragments; /* pointers to fragments */ member
251 free(buffer->fragments[i]); in buffer_free()
254 free(buffer->fragments); in buffer_free()
273 buffer->fragments = NULL; in buffer_new()
292 if ((buffer->fragments = malloc(sizeof(*(buffer->fragments)))) == NULL) { in buffer_new_read()
299 buffer->fragments[0] = (zip_uint8_t *)data; in buffer_new_read()
316 if ((buffer->fragments = malloc(sizeof(*(buffer->fragments)))) == NULL) { in buffer_new_write()
348 memcpy(data + n, buffer->fragments[i] + fragment_offset, left); in buffer_read()
378 zip_uint8_t **fragments; in buffer_write() local
396 fragments = realloc(buffer->fragments, new_capacity * sizeof(*fragments)); in buffer_write()
398 if (fragments == NULL) { in buffer_write()
403 buffer->fragments = fragments; in buffer_write()
408 if ((buffer->fragments[buffer->nfragments] = malloc(buffer->fragment_size)) == NULL) { in buffer_write()
422 memcpy(buffer->fragments[i] + fragment_offset, data + n, left); in buffer_write()