邮 箱:
   
密 码:
注册

Delphi压缩库 ZLibEx 介绍

花花世界 分类: 电脑/IT- 编程语言 被浏览 1987 次 很久之前

举报

Delphi ZLibEx,this software is provided "as-is", without any express or implied warranty.
in no event will the authors be held liable for any damages arising from the
use of this software.


--------------------------------------------------------
###Installation
--------------------------------------------------------
首先,拷贝所有文件到一个文件夹(比如,c:\delphi\zlib)。
再把这个路径添加到environment options中的library path中。
最后,在需要使用的时候use zlibex


---------------------------------------------------------
###How to use
---------------------------------------------------------
//压缩Buffer
procedure ZCompress(const inBuffer: Pointer; inSize: Integer;
out outBuffer: Pointer; out outSize: Integer;
level: TZCompressionLevel);

//解压Buffer
procedure ZDecompress(const inBuffer: Pointer; inSize: Integer;
out outBuffer: Pointer; out outSize: Integer; outEstimate: Integer);


//压缩流
procedure ZCompressStream(inStream, outStream: TStream;
level: TZCompressionLevel);

//解压流
procedure ZDecompressStream(inStream, outStream: TStream); 

//压缩字符串
function ZCompressStr(const s: String; level: TZCompressionLevel): String;

//解压字符串
function ZDecompressStr(const s: String): String;



--------------------------------------------------------
###Content
--------------------------------------------------------
zlibex.pas

objects files used by zlibex.pas

    adler32.obj
    compress.obj
    crc32.obj
    deflate.obj
    infback.obj
    inffast.obj
    inflate.obj
    inftrees.obj
    trees.obj

--------------------------------------------------------
zlib 源文件(http://www.gzip.org/zlib)
--------------------------------------------------------
    adler32.c
    compress.c
    crc32.c
    deflate.c
    example.c
    gzio.c
    infback.c
    inffast.c
    inflate.c
    inftrees.c
    minigzip.c
    trees.c
    uncompr.c
 
我有更好的答案∨
 图片
验证码 (看不清,点图换一张)
出错啦!!!
左手倒影
采纳
左手倒影
采纳率:73% 3级 举报 很久之前
不错,支持一下!
评论00
 

全部回答(1)

分享: 
雪炭问答

举报内容:

举报类型

举报原因


举报说明

详细的描述及证据可以帮助管理员更快速处理违规内容