📄 pgpfifo.h
字号:
/*
* pgpFIFO.h -- A general interface to a First-In First-Out system used
* by PGP. There can be many FIFO implementations, and this is the
* interface that each must support.
*
* $Id: pgpFIFO.h,v 1.14 1998/09/14 20:49:21 hal Exp $
*/
#ifndef Included_pgpFIFO_h
#define Included_pgpFIFO_h
#include "pgpUsuals.h"
PGP_BEGIN_C_DECLARATIONS
#include "pgpOpaqueStructs.h"
#include "pgpPubTypes.h"
#include "pgpMemoryMgr.h"
struct PGPFifoDesc
{
char const * name;
PGPFifoContext * (*create) ( PGPContextRef context );
PGPSize (*read) (PGPFifoContext *fifo, PGPByte *buf, PGPSize len);
PGPSize (*write) (PGPFifoContext *fifo, PGPByte const *buf,
PGPSize len);
PGPByte const * (*peek) (PGPFifoContext *fifo, PGPSize *len);
void (*seek) (PGPFifoContext *fifo, PGPSize len);
void (*flush) (PGPFifoContext *fifo);
void (*destroy) (PGPFifoContext *fifo);
PGPSize (*size) (PGPFifoContext const *fifo);
};
#define pgpFifoCreate(context, fd) (fd)->create( context )
#define pgpFifoRead(fd,f,b,l) (fd)->read(f,b,l)
#define pgpFifoWrite(fd,f,b,l) (fd)->write(f,b,l)
#define pgpFifoPeek(fd,f,l) (fd)->peek(f,l)
#define pgpFifoSeek(fd,f,l) (fd)->seek(f,l)
#define pgpFifoFlush(fd,f) (fd)->flush(f)
#define pgpFifoDestroy(fd,f) (fd)->destroy(f)
#define pgpFifoSize(fd,f) (fd)->size(f)
extern PGPFifoDesc const pgpByteFifoDesc;
extern PGPFifoDesc const pgpSecureByteFifoDesc;
extern PGPFifoDesc const pgpFileFifoDesc;
extern PGPFifoDesc const pgpFlexFifoDesc;
PGP_END_C_DECLARATIONS
#endif /* Included_pgpFIFO_h */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -