27 lines
420 B
C++
27 lines
420 B
C++
// TarIn.h
|
|
|
|
#ifndef __ARCHIVE_TAR_IN_H
|
|
#define __ARCHIVE_TAR_IN_H
|
|
|
|
#include "../../IStream.h"
|
|
|
|
#include "TarItem.h"
|
|
|
|
namespace NArchive {
|
|
namespace NTar {
|
|
|
|
enum EErrorType
|
|
{
|
|
k_ErrorType_OK,
|
|
k_ErrorType_Corrupted,
|
|
k_ErrorType_UnexpectedEnd,
|
|
};
|
|
|
|
HRESULT ReadItem(ISequentialInStream *stream, bool &filled, CItemEx &itemInfo, EErrorType &error);
|
|
|
|
API_FUNC_IsArc IsArc_Tar(const Byte *p, size_t size);
|
|
|
|
}}
|
|
|
|
#endif
|