blocksort.h

来自「版本4.33,可以识别rar,zip,tag等多种压缩格式」· C头文件 代码 · 共 30 行

H
30
字号
// BlockSort.h

#ifndef __BLOCKSORT_H
#define __BLOCKSORT_H

#include "Common/Types.h"

namespace NCompress {

class CBlockSorter
{
  UInt32 *Groups;
  UInt32 *Flags;
  UInt32 BlockSize;
  UInt32 NumSortedBytes;
  UInt32 BlockSizeMax;
  UInt32 SortGroup(UInt32 groupOffset, UInt32 groupSize, UInt32 mask, UInt32 maskSize);
public:
  UInt32 *Indices;
  CBlockSorter(): Indices(0) {} 
  ~CBlockSorter() { Free(); }
  bool Create(UInt32 blockSizeMax);
  void Free();
  UInt32 Sort(const Byte *data, UInt32 blockSize);
};

}

#endif

⌨️ 快捷键说明

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