Compute uncompressed size

This commit is contained in:
atxr 2024-02-06 15:03:28 +01:00
parent 8830c46593
commit 0b199784ec

View file

@ -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;
}