-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathauto.hpp
33 lines (26 loc) · 894 Bytes
/
auto.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#ifndef __UNPACKCPP_AUTO_HPP
#define __UNPACKCPP_AUTO_HPP
#include "base/unpack_base.hpp"
namespace UnpackCpp
{
/* An unpacker that auto-detects archive format.
Currently supported formats:
- ZIP (zip/unpack_zip.hpp)
Throws an error if the file is missing, or if no supported format
was detected.
NOTE: some formats (especially EXE unpackers) will have wildly
different performance statistics depending on whether or not a
FileList is included.
It is therefore recommended that you pre-generate a FileList
using index(), and pass it along to unpackers if possible.
*/
struct AutoUnpack : UnpackBase
{
void unpack(Mangle::Stream::StreamPtr input,
Mangle::VFS::StreamFactoryPtr output,
Progress *prog = NULL,
const FileList *list = NULL);
using UnpackBase::unpack;
};
}
#endif