2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
http://bbs.csdn.net/topics/190020986
 
 
function CFFunc.Compression.Zlib.DeCompressionStream(const AInStream,
  AOutStream: TStream) : Boolean;
var
  ds : TDeCompressionStream;
  buff : array[1..4096of Byte;
  iread : integer;
begin
  Result  :=  True;
  AInStream.Position := 0;
  try
    ds := TDeCompressionStream.Create(AInStream);
    try
      repeat
       iread := ds.Read(buff, sizeof(buff));
       if iread > 0 then
         AOutStream.Write(buff, iread);
      until (iRead = 0);
    finally
      ds.Free;
    end;
  except
    Result  :=  False;
  end;
end;

最新文章

  1. JSON金额解析BUG的解决过程
  2. 配置OWASP的ModSecurity规则
  3. 最新版 CocoaPods 的安装流程
  4. 定时器(NSTimer)
  5. SQl 字段中出现某一个词语的次数
  6. curl raise 信号出core
  7. java按行读取txt并按行写入
  8. IOS 开发-- 常用-- 核心代码
  9. Hadoop-2.4.1完全分布式环境搭建
  10. CodeForces 676D Theseus and labyrinth
  11. 字符串转数字练习--String to Integer (atoi)
  12. identity server4 证书
  13. widerface---VOC
  14. Python print输出重定向到文件和屏幕,超简单
  15. yii2 Menu组件的使用
  16. 如何使用Scrapy框架实现网络爬虫
  17. 近期 Unity 提交苹果审核被拒的问题
  18. java并发编程CountDownLatch
  19. Node http和express和mysql
  20. 执行hadoop自带的WordCount实例

热门文章

  1. bcdedit删除uefi多余项
  2. Jmeter分布式测试dubbo接口2
  3. HDU - 1024 Max Sum Plus Plus 最大m段子段和+滚动数组优化
  4. 十二、S3C2440 裸机 — SDRAM
  5. java ArrayList迭代过程中删除
  6. linux shell getopt
  7. SQL语句 函数
  8. Rsync参数介绍
  9. 通过页面名字调用页面并添加到tab控件中
  10. postman—创建collection,执行collection和批量执行