Implement ZipFile and ZipEntry

This commit is contained in:
Soggy_Pancake 2026-03-14 13:30:44 -07:00
parent 976dcc07ef
commit 4e91d5ca4c
7 changed files with 235 additions and 11 deletions

View file

@ -0,0 +1,27 @@
#include "stdafx.h"
#include "ZipEntry.h"
ZipEntry::ZipEntry(bit7z::BitArchiveItemOffset itemInfo) : _itemInfo(itemInfo) {
_name = itemInfo.name();
_path = itemInfo.path();
}
DWORD ZipEntry::getSize() {
return _itemInfo.size();
}
bool ZipEntry::isDir() {
return _itemInfo.isDir();
}
std::string ZipEntry::getName() {
return _name;
}
std::string ZipEntry::path() {
return _path;
}
unsigned int ZipEntry::getIndex() {
return (unsigned int)_itemInfo.index();
}