tcrfile.h

来自「俄罗斯人开发的大名鼎鼎的Pocket Pc 阅读器haaliread的源代码,v」· C头文件 代码 · 共 43 行

H
43
字号
// 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 + =
减小字号Ctrl + -
显示快捷键?