ultimatepp/uppsrc/plugin/zip/UnZipUtil.cpp
cxl 8ebdcbb0d5 uppsrc: NAMESPACE_UPP / END_UPP_NAMESPACE removed
git-svn-id: svn://ultimatepp.org/upp/trunk@10186 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2016-08-26 17:15:30 +00:00

25 lines
363 B
C++

#include "zip.h"
namespace Upp {
bool FileUnZip::Create(const char *name)
{
if(!zip.Open(name))
return false;
UnZip::Create(zip);
return true;
}
void MemUnZip::Create(const void *ptr, int count)
{
zip.Create(ptr, count);
UnZip::Create(zip);
}
void StringUnZip::Create(const String& s)
{
zip.Open(s);
UnZip::Create(zip);
}
}