summaryrefslogtreecommitdiffstats
path: root/src/libs/7zip/win/CPP/7zip/Archive/Tar/TarOut.h
blob: ef837869b3847bc0a37ed01e46d408ad3039b426 (plain)
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
// Archive/TarOut.h

#ifndef __ARCHIVE_TAR_OUT_H
#define __ARCHIVE_TAR_OUT_H

#include "TarItem.h"

#include "Common/MyCom.h"
#include "../../IStream.h"

namespace NArchive {
namespace NTar {

class COutArchive
{
  CMyComPtr<ISequentialOutStream> m_Stream;
  HRESULT WriteBytes(const void *buffer, UInt32 size);
public:
  void Create(ISequentialOutStream *outStream);
  HRESULT WriteHeaderReal(const CItem &item);
  HRESULT WriteHeader(const CItem &item);
  HRESULT FillDataResidual(UInt64 dataSize);
  HRESULT WriteFinishHeader();
};

}}

#endif