41 lines
1.0 KiB
C++
Executable File
41 lines
1.0 KiB
C++
Executable File
// TJP COPYRIGHT HEADER
|
|
|
|
#pragma once
|
|
|
|
#include "Exception.h"
|
|
#include <tjp/core/containers/Vector.h>
|
|
#include <list>
|
|
#include <vector>
|
|
#include <map>
|
|
|
|
namespace tjp {
|
|
namespace core {
|
|
namespace zip {
|
|
|
|
/**
|
|
* decompresses the given file to the given path, sets the files to the set of files
|
|
* found
|
|
*/
|
|
void compress (const std::string &file, const std::string &path, const std::list<std::string> &files);
|
|
void compress (const std::string &file, const std::map<std::string, std::string> &zipFileNameToDiskFileName);
|
|
void compress (const std::string &from, const std::string &to);
|
|
|
|
Vector<char> compress (const std::string &path, const std::list<std::string> &files);
|
|
|
|
bool compress (const char *from, int fromSize, char *&to, int &toSize, int level=9);
|
|
|
|
bool compress (const char *from, int fromSize, std::vector<char> &to, int level=9);
|
|
|
|
std::vector<char> compress (const char *from, int fromSize, int level=9);
|
|
|
|
} // namespace
|
|
|
|
namespace zstd {
|
|
|
|
std::vector<char> compress (const char *from, int fromSize, int level=9);
|
|
|
|
}
|
|
|
|
} //
|
|
} //
|