zlib_adapter.h

来自「一个开源的嵌入式flash播放器的源代码」· C头文件 代码 · 共 48 行

H
48
字号
// zlib_adapter.h	-- Thatcher Ulrich 2003// This source code has been donated to the Public Domain.  Do// whatever you want with it.// Code to wrap zlib compression/decompression around a tu_file// stream.#ifndef ZLIB_ADAPTER_H#define ZLIB_ADAPTER_H#include "base/tu_config.h"class tu_file;namespace zlib_adapter{	// NOTE: these functions will return NULL if	// TU_CONFIG_LINK_TO_ZLIB is set to 0.	// Returns a read-only tu_file stream that inflates the remaining	// content of the given input stream, as you read data from the	// new stream.	//	// The caller owns the returned tu_file*.  The caller also owns	// the input tu_file*; don't delete it until you've deleted the	// returned tu_file.	// @@ Here's a good case for ref-counting...	tu_file*	make_inflater(tu_file* in);	// Returns a write-only tu_file stream that deflates the remaining	// content of the given input stream.	tu_file*	make_deflater(tu_file* out);}#endif // ZLIB_ADAPTER_H// Local Variables:// mode: C++// c-basic-offset: 8 // tab-width: 8// indent-tabs-mode: t// End:

⌨️ 快捷键说明

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