pgpmemoryio.h

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

H
55
字号
/*____________________________________________________________________________
	Copyright (C) 1997 Network Associates Inc. and affiliated companies.
	All rights reserved.
	
	Superclass for all memory IO objects.
	
	A pgpMemoryIO uses memory as a backing store, dynamically resizing
	as needed.
	
	$Id: pgpMemoryIO.h,v 1.7 1999/03/10 02:53:20 heller Exp $
____________________________________________________________________________*/

/* base class */
#include "pgpIO.h"
#include "pgpMemoryMgr.h"


PGP_BEGIN_C_DECLARATIONS
#if PRAGMA_IMPORT_SUPPORTED
#pragma import on
#endif



typedef struct PGPMemoryIO		PGPMemoryIO;
typedef PGPMemoryIO *			PGPMemoryIORef;

PGPError	PGPNewMemoryIO( PGPMemoryMgrRef context, PGPMemoryIORef *outRef );

/* buffer can't change and caller is responsible for destroying the buffer */
PGPError	PGPNewMemoryIOFixedBuffer( PGPMemoryMgrRef context,
				void *buffer, PGPSize bufferSize, PGPMemoryIORef *outRef );


PGPBoolean	PGPMemoryIOIsValid( PGPMemoryIORef ref );
#define PGPValidateMemoryIO( ref )	\
	PGPValidateParam( PGPMemoryIOIsValid( ref ) )



#if PRAGMA_IMPORT_SUPPORTED
#pragma import on
#endif
PGP_END_C_DECLARATIONS


/*__Editor_settings____

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

⌨️ 快捷键说明

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