flatten 20260225
This commit is contained in:
40
tjp/core/zip/Compress.h
Executable file
40
tjp/core/zip/Compress.h
Executable file
@@ -0,0 +1,40 @@
|
||||
// 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);
|
||||
|
||||
}
|
||||
|
||||
} //
|
||||
} //
|
||||
Reference in New Issue
Block a user