securememory.h

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

H
41
字号
//////////////////////////////////////////////////////////////////////////////
// SecureMemory.h
//
// Declaration of class SecureMemory.
//////////////////////////////////////////////////////////////////////////////

// $Id: SecureMemory.h,v 1.4 1998/12/14 19:01:22 nryan Exp $

// Copyright (C) 1998 by Network Associates, Inc.
// All rights reserved.

#ifndef Included_SecureMemory_h	// [
#define Included_SecureMemory_h

#include "DualErr.h"


/////////////////////
// Class SecureMemory
/////////////////////

// This class is thread-safe.

class SecureMemory
{
public:
	DualErr mInitErr;

	SecureMemory(PGPUInt32 size);
	~SecureMemory();

	PGPUInt32	GetSize();		// returns the size of the allocated memory
	void		*GetPtr();		// returns a pointer to the allocated memory

private:
	PGPUInt32	mSize;			// size of the memory
	void		*mPMem;			// pointer to the locked memory
};

#endif	// ] Included_SecureMemory_h

⌨️ 快捷键说明

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