20 lines
829 B
C++
20 lines
829 B
C++
#pragma once
|
|
#include "fs/Error.h"
|
|
#include "fs/Api.h"
|
|
#include "fs/IFilesystem.h"
|
|
|
|
namespace fs
|
|
{
|
|
|
|
class ISink;
|
|
|
|
typedef tl::result<void, Error> UnzipResult;
|
|
FS_API UnzipResult unzipSource(IFilesystem& dstFilesystem, const AbsPath& filePath, tl::unique_ref<IMapSource> source);
|
|
FS_API UnzipResult unzipFile(IFilesystem& dstFilesystem, const AbsPath& filePath, tl::lent_ref<const IFilesystem> filesystem, AbsPath srcFilePath);
|
|
|
|
typedef tl::result<void, Error> ZipResult;
|
|
FS_API ZipResult zipToSink(ISink& sink, tl::lent_ref<IFilesystem> filesystem, const AbsPath& path, uint8_t compressionLevel, size_t fileDataAlignment = 0);
|
|
FS_API ZipResult zipToFile(IFilesystem& dstFilesystem, const AbsPath& dstFilePath, tl::lent_ref<IFilesystem> filesystem, const AbsPath& path, uint8_t compressionLevel, size_t fileDataAlignment = 0);
|
|
|
|
}
|