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

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

#pragma once

#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<IOutStream> m_Stream;
  HRESULT WriteBytes(const void *buffer, UINT32 size);
public:
  void Create(IOutStream *outStream) {  m_Stream = outStream; }
  HRESULT WriteHeader(const CItem &item);
  HRESULT WritePostInfo(UINT32 crc, UINT32 anUnpackSize);
};

}}

#endif