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

📄 ckzipcrc.h

📁 DES加密解密算法,西望大家共享.参考学习
💻 H
字号:
// CkZipCrc.h: interface for the CkZipCrc class.
//
//////////////////////////////////////////////////////////////////////

#ifndef _CKTAR_H
#define _CKTAR_H

#pragma once


class CkByteData;
#include "CkString.h"
#include "CkObject.h"

#pragma warning( disable : 4068 )
#pragma unmanaged

/*
    IMPORTANT: Objects returned by methods as non-const pointers must be deleted
    by the calling application. 

  */


// CLASS: CkZipCrc
class CkZipCrc  : public CkObject
{
    public:
	CkZipCrc();
	virtual ~CkZipCrc();

	// BEGIN PUBLIC INTERFACE
	bool get_Utf8(void) const;
	void put_Utf8(bool b);

	void ToHex(unsigned long crc, CkString &strHex) const;
	unsigned long FileCrc(const char *filename);
	unsigned long CalculateCrc(CkByteData &byteData);
	void MoreData(CkByteData &byteData);
	unsigned long EndStream(void);
	void BeginStream(void);

	CkString m_resultString;
	const char *toHex(unsigned long crc);

	// END PUBLIC INTERFACE


    // For internal use only.
    private:
	void *m_impl;
	bool m_utf8;	// If true, all input "const char *" parameters are utf-8, otherwise they are ANSI strings.

	// Don't allow assignment or copying these objects.
	CkZipCrc(const CkZipCrc &) { } 
	CkZipCrc &operator=(const CkZipCrc &) { return *this; }

    public:
	void *getImpl(void) const { return m_impl; } 

	CkZipCrc(void *impl);


};


#endif


⌨️ 快捷键说明

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