pgpcompress.h

来自「vc环境下的pgp源码」· C头文件 代码 · 共 72 行

H
72
字号
/*____________________________________________________________________________
	Copyright (C) 1998 Network Associates, Inc.
	All rights reserved.

	$Id: pgpCompress.h,v 1.4 1999/03/20 22:43:24 dgal Exp $
____________________________________________________________________________*/
#ifndef Included_pgpCompress_h	/* [ */
#define Included_pgpCompress_h

#include "pgpPubTypes.h"
#include "pgpMemoryMgr.h"
#include "pgpErrors.h"

typedef struct PGPCompContext		PGPCompContext;
typedef struct PGPCompContext *		PGPCompContextRef;

typedef enum _PGPCompressionAlgorithm
{
	kPGPCompAlgorithm_None		= 0,
	kPGPCompAlgorithm_Deflate	= 1,
	kPGPCompAlgorithm_LZS		= 2

} PGPCompressionAlgorithm;


PGP_BEGIN_C_DECLARATIONS

PGPError PGPNewCompContext(PGPMemoryMgrRef memoryMgr, 
			PGPCompressionAlgorithm algorithm, PGPCompContextRef *comp);

/* Caller must call PGPFreeData(outputBuffer) when finished with it */

PGPError PGPCompressBuffer(PGPCompContextRef comp, PGPByte *inputBuffer,
			PGPSize inputBufferSize, PGPBoolean secureOutputBuffer, 
			PGPByte **outputBuffer, PGPSize *outputBufferSize);

PGPError PGPContinueCompress(PGPCompContextRef comp, PGPByte *inputBuffer,
			PGPSize inputBufferSize, PGPByte *outputBuffer, 
			PGPSize outputBufferSize, PGPSize *inputBytesUsed,
			PGPSize *outputBytesUsed);

PGPError PGPFinishCompress(PGPCompContextRef comp, PGPByte *outputBuffer, 
			PGPSize outputBufferSize, PGPSize *outputBytesUsed,
			PGPBoolean *moreOutputNeeded);

/* Caller must call PGPFreeData(outputBuffer) when finished with it */

PGPError PGPDecompressBuffer(PGPCompContextRef comp, PGPByte *inputBuffer,
			PGPSize inputBufferSize, PGPBoolean secureOutputBuffer, 
			PGPByte **outputBuffer, PGPSize *outputBufferSize);

PGPError PGPContinueDecompress(PGPCompContextRef comp, PGPByte *inputBuffer,
			PGPSize inputBufferSize, PGPByte *outputBuffer, 
			PGPSize outputBufferSize, PGPSize *inputBytesUsed,
			PGPSize *outputBytesUsed, PGPBoolean *finished);

PGPError PGPFreeCompContext(PGPCompContextRef comp);

PGP_END_C_DECLARATIONS

#endif /* ] Included_pgpCompress_h */


/*__Editor_settings____

	Local Variables:
	tab-width: 4
	End:
	vi: ts=4 sw=4
	vim: si
_____________________*/

⌨️ 快捷键说明

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