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

📄 tcrfile.h

📁 俄罗斯人开发的大名鼎鼎的Pocket Pc 阅读器haaliread的源代码,visual c
💻 H
字号:
// Written by Andrey Chicherov, uart@os2.ru

#ifndef TCRFILE_H
#define TCRFILE_H

#if _MSC_VER > 1000
#pragma once
#endif

#include "RFile.h"

class TCRFile: public RFile {

public:

  TCRFile (const CString& fn);

  // generic file operations

  virtual DWORD size() { return m_length; }
  virtual DWORD read (void *buf);
  virtual void seek (DWORD pos);

  // compression

  virtual CString CompressionInfo ();

  // check if this is a tcr file

  static bool IsTCR (RFile *fp);

protected:

  struct Block { DWORD size, off, usize, uoff; };
  Buffer<unsigned char> Dictonary [256];
  Buffer<Block> m_blocks;
  DWORD m_length, m_ptr;

  static bool	CheckTCR (RFile *fp);
};

#endif

⌨️ 快捷键说明

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