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
|