Compute uncompressed size
This commit is contained in:
parent
8830c46593
commit
0b199784ec
1 changed files with 17 additions and 0 deletions
|
|
@ -0,0 +1,17 @@
|
||||||
|
#include "libmineziper.h"
|
||||||
|
|
||||||
|
bool detect_overlaps(char* filename) {}
|
||||||
|
|
||||||
|
int get_uncompressed_size(zip* in)
|
||||||
|
{
|
||||||
|
int size = 0;
|
||||||
|
|
||||||
|
CDH* cdh = in->central_directory;
|
||||||
|
while (cdh)
|
||||||
|
{
|
||||||
|
size += cdh->lfh->size_uncompressed_data;
|
||||||
|
cdh = cdh++;
|
||||||
|
}
|
||||||
|
|
||||||
|
return size;
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue