pgpzinflate.h

来自「可以实现对邮件的加密解密以及签名」· C头文件 代码 · 共 48 行

H
48
字号
/*____________________________________________________________________________
        Copyright (C) 2002 PGP Corporation
        All rights reserved.

	inflate a zip-compressed stream 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: pgpZInflate.h,v 1.5 2002/08/06 20:10:58 dallen Exp $
____________________________________________________________________________*/

#include <stddef.h>	/* For size_t */

#include "pgpContext.h"


PGP_BEGIN_C_DECLARATIONS

/* Private context structure */
struct InflateContext;
#ifndef TYPE_InflateContext
#define TYPE_InflateContext 1
typedef struct InflateContext InflateContext;
#endif

InflateContext *infAlloc(PGPContextRef	context);
void infFree(InflateContext *ctx);

/* Write bytes.  Returns bytes written.  error < 0 if trouble */
size_t infWrite(InflateContext *ctx, unsigned char const *buf, 
	size_t len, PGPError *error);
/* Get pointer & len of available output bytes */
unsigned char const *infGetBytes(InflateContext *ctx, unsigned *len);
/* Tell InflateContext that you've read "len" of available bytes */
void infSkipBytes(InflateContext *ctx, unsigned len);
/* Returns 0 for okay, or <0 for error */
int infEOF(InflateContext *ctx);

PGP_END_C_DECLARATIONS

/* Error codes returned. */
#define INFERR_NONE	0
#define INFERR_NOMEM	-1	/* Unable to allocate as needed */
#define INFERR_BADINPUT	-2	/* Corrupt input */
#define INFERR_SHORT	-3	/* Unexpected EOF */
#define INFERR_LONG	-4	/* Padding after expected EOF */

⌨️ 快捷键说明

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