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

github.com/kornelski/7z.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'CPP/7zip/Archive/GZip/GZipOut.h')
-rwxr-xr-xCPP/7zip/Archive/GZip/GZipOut.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/CPP/7zip/Archive/GZip/GZipOut.h b/CPP/7zip/Archive/GZip/GZipOut.h
new file mode 100755
index 00000000..a2ba2ebf
--- /dev/null
+++ b/CPP/7zip/Archive/GZip/GZipOut.h
@@ -0,0 +1,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