pgpbytefifo.h

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

H
40
字号
/*
 * pgpByteFIFO.h -- A first-in-first-out pipe of bytes.
 *
 * This is a PRIVATE header file, for use only within the PGP Library.
 * You should not be using these functions in an application.
 *
 * $Id: pgpByteFIFO.h,v 1.12 1998/09/14 20:49:16 hal Exp $
 */

#ifndef Included_pgpByteFIFO_h
#define Included_pgpByteFIFO_h

#include "pgpPubTypes.h"
#include "pgpOpaqueStructs.h"
#include "pgpMemoryMgr.h"

PGP_BEGIN_C_DECLARATIONS


PGPFifoContext *byteFifoCreate ( PGPContextRef context );
PGPFifoContext *byteFifoCreateSecure ( PGPContextRef context );
void byteFifoDestroy (PGPFifoContext *fifo);

PGPByte *byteFifoGetSpace (PGPFifoContext *fifo, PGPSize *len);
void byteFifoSkipSpace (PGPFifoContext *fifo, PGPSize len);

PGPByte const *byteFifoPeek (PGPFifoContext *fifo, PGPSize *len);
void byteFifoSeek (PGPFifoContext *fifo, PGPSize len);

PGPSize byteFifoWrite (PGPFifoContext *fifo, PGPByte const *buf,
		      PGPSize len);
PGPSize byteFifoRead (PGPFifoContext *fifo, PGPByte *buf, PGPSize len);

void byteFifoFlush(PGPFifoContext *fifo);
PGPSize byteFifoSize (PGPFifoContext const *fifo);

PGP_END_C_DECLARATIONS

#endif /* Included_pgpByteFIFO_h */

⌨️ 快捷键说明

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