view src/win32/7zip/7z/CPP/7zip/Archive/GZip/GZipIn.h @ 1:f9f4f1b99eed

importing src directory
author Robert McIntyre <rlm@mit.edu>
date Sat, 03 Mar 2012 10:31:27 -0600
parents
children
line wrap: on
line source
1 // Archive/GZipIn.h
3 #ifndef __ARCHIVE_GZIP_IN_H
4 #define __ARCHIVE_GZIP_IN_H
6 #include "GZipHeader.h"
7 #include "GZipItem.h"
8 #include "../../IStream.h"
10 namespace NArchive {
11 namespace NGZip {
13 class CInArchive
14 {
15 UInt64 m_Position;
17 HRESULT ReadBytes(ISequentialInStream *inStream, void *data, UInt32 size);
18 HRESULT ReadZeroTerminatedString(ISequentialInStream *inStream, AString &resString, UInt32 &crc);
19 HRESULT ReadByte(ISequentialInStream *inStream, Byte &value, UInt32 &crc);
20 HRESULT ReadUInt16(ISequentialInStream *inStream, UInt16 &value, UInt32 &crc);
21 HRESULT ReadUInt32(ISequentialInStream *inStream, UInt32 &value, UInt32 &crc);
22 public:
23 HRESULT ReadHeader(ISequentialInStream *inStream, CItem &item);
24 HRESULT ReadPostHeader(ISequentialInStream *inStream, CItem &item);
25 UInt64 GetOffset() const { return m_Position; }
26 };
28 }}
30 #endif