flatten 20260225

This commit is contained in:
Timothy Prepscius
2026-02-25 12:39:24 -05:00
commit fa54be052a
315 changed files with 49791 additions and 0 deletions

40
tjp/core/zip/Compress.h Executable file
View 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);
}
} //
} //