First set of cleanups to archive handling
- Don't read the entire archive file into memory on systems without HAVE_MMAP - Support ZIP files between 2GB ~ 4GB on 32bit architectures - Remove zip exclusive members from `file_archive_transfer` - Add `zip_context_t` for zip like the already existing `sevenzip_context_t` - Unify cleanups of zip and 7z in `file_archive_file_backend::archive_parse_file_free` - Handle some sizes and offsets as int64_t (preparation for future Zip64 support) - Handle compression methods in `zlib_stream_decompress_data_to_file_init` not in `file_archive_perform_mode` - Return progress of 7z iterating with `file_archive_parse_file_progress`
This commit is contained in:
parent
347d1964ba
commit
0ddb073784
6 changed files with 395 additions and 518 deletions
|
@ -389,16 +389,6 @@ database_info_handle_t *database_info_dir_init(const char *dir,
|
|||
db->list_ptr = 0;
|
||||
db->list = list;
|
||||
|
||||
db->state.type = ARCHIVE_TRANSFER_NONE;
|
||||
db->state.archive_size = 0;
|
||||
db->state.start_delta = 0;
|
||||
db->state.handle = NULL;
|
||||
db->state.stream = NULL;
|
||||
db->state.footer = NULL;
|
||||
db->state.directory = NULL;
|
||||
db->state.data = NULL;
|
||||
db->state.backend = NULL;
|
||||
|
||||
return db;
|
||||
}
|
||||
|
||||
|
@ -430,16 +420,6 @@ database_info_handle_t *database_info_file_init(const char *path,
|
|||
db->list_ptr = 0;
|
||||
db->list = list;
|
||||
|
||||
db->state.type = ARCHIVE_TRANSFER_NONE;
|
||||
db->state.archive_size = 0;
|
||||
db->state.start_delta = 0;
|
||||
db->state.handle = NULL;
|
||||
db->state.stream = NULL;
|
||||
db->state.footer = NULL;
|
||||
db->state.directory = NULL;
|
||||
db->state.data = NULL;
|
||||
db->state.backend = NULL;
|
||||
|
||||
return db;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue