Welcome to mirror list, hosted at ThFree Co, Russian Federation.

GZipOut.h « GZip « Archive « 7zip « CPP - github.com/kornelski/7z.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: a2ba2ebf42fe24db7f6d7d46c411b10443e2617a (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
29
// Archive/GZipOut.h

#ifndef __ARCHIVE_GZIP_OUT_H
#define __ARCHIVE_GZIP_OUT_H

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

namespace NArchive {
namespace NGZip {

class COutArchive
{
  CMyComPtr<ISequentialOutStream> m_Stream;
  HRESULT WriteBytes(const void *buffer, UInt32 size);
  HRESULT WriteByte(Byte value);
  HRESULT WriteUInt16(UInt16 value);
  HRESULT WriteUInt32(UInt32 value);
public:
  void Create(ISequentialOutStream *outStream) {  m_Stream = outStream; }
  HRESULT WriteHeader(const CItem &item);
  HRESULT WritePostHeader(const CItem &item);
};

}}

#endif