⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gzipin.h

📁 7-Zip 3.11的源码
💻 H
字号:
// Archive/GZipIn.h

#pragma once

#ifndef __ARCHIVE_GZIP_IN_H
#define __ARCHIVE_GZIP_IN_H

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

namespace NArchive {
namespace NGZip {
  
class CInArchive
{
  UINT64 m_StreamStartPosition;
  UINT64 m_Position;
  
  HRESULT ReadBytes(IInStream *inStream, void *data, UINT32 size);
  HRESULT UpdateCRCBytes(IInStream *inStream, UINT32 numBytesToSkeep, CCRC &crc);

  HRESULT ReadZeroTerminatedString(IInStream *inStream, AString &resString);

public:
  HRESULT ReadHeader(IInStream *inStream, CItemEx &item);
  HRESULT ReadPostInfo(IInStream *inStream, UINT32 &crc, UINT32 &unpackSize32);
  UINT64 GetPosition() const { return m_Position; }
};
  
}}
  
#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -