亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? example.pas

?? 許多壓縮算法都用到了ZLIP算法
?? PAS
?? 第 1 頁 / 共 2 頁
字號:
(* example.c -- usage example of the zlib compression library * Copyright (C) 1995-2003 Jean-loup Gailly. * For conditions of distribution and use, see copyright notice in zlib.h * * Pascal translation * Copyright (C) 1998 by Jacques Nomssi Nzali. * For conditions of distribution and use, see copyright notice in readme.txt * * Adaptation to the zlibpas interface * Copyright (C) 2003 by Cosmin Truta. * For conditions of distribution and use, see copyright notice in readme.txt *)program example;{$DEFINE TEST_COMPRESS}{DO NOT $DEFINE TEST_GZIO}{$DEFINE TEST_DEFLATE}{$DEFINE TEST_INFLATE}{$DEFINE TEST_FLUSH}{$DEFINE TEST_SYNC}{$DEFINE TEST_DICT}uses SysUtils, zlibpas;const TESTFILE = 'foo.gz';(* "hello world" would be more standard, but the repeated "hello" * stresses the compression code better, sorry... *)const hello: PChar = 'hello, hello!';const dictionary: PChar = 'hello';var dictId: LongInt; (* Adler32 value of the dictionary *)procedure CHECK_ERR(err: Integer; msg: String);begin  if err <> Z_OK then  begin    WriteLn(msg, ' error: ', err);    Halt(1);  end;end;procedure EXIT_ERR(const msg: String);begin  WriteLn('Error: ', msg);  Halt(1);end;(* =========================================================================== * Test compress and uncompress *){$IFDEF TEST_COMPRESS}procedure test_compress(compr: Pointer; comprLen: LongInt;                        uncompr: Pointer; uncomprLen: LongInt);var err: Integer;    len: LongInt;begin  len := StrLen(hello)+1;  err := compress(compr, comprLen, hello, len);  CHECK_ERR(err, 'compress');  StrCopy(PChar(uncompr), 'garbage');  err := uncompress(uncompr, uncomprLen, compr, comprLen);  CHECK_ERR(err, 'uncompress');  if StrComp(PChar(uncompr), hello) <> 0 then    EXIT_ERR('bad uncompress')  else    WriteLn('uncompress(): ', PChar(uncompr));end;{$ENDIF}(* =========================================================================== * Test read/write of .gz files *){$IFDEF TEST_GZIO}procedure test_gzio(const fname: PChar; (* compressed file name *)                    uncompr: Pointer;                    uncomprLen: LongInt);var err: Integer;    len: Integer;    zfile: gzFile;    pos: LongInt;begin  len := StrLen(hello)+1;  zfile := gzopen(fname, 'wb');  if zfile = NIL then  begin    WriteLn('gzopen error');    Halt(1);  end;  gzputc(zfile, 'h');  if gzputs(zfile, 'ello') <> 4 then  begin    WriteLn('gzputs err: ', gzerror(zfile, err));    Halt(1);  end;  {$IFDEF GZ_FORMAT_STRING}  if gzprintf(zfile, ', %s!', 'hello') <> 8 then  begin    WriteLn('gzprintf err: ', gzerror(zfile, err));    Halt(1);  end;  {$ELSE}  if gzputs(zfile, ', hello!') <> 8 then  begin    WriteLn('gzputs err: ', gzerror(zfile, err));    Halt(1);  end;  {$ENDIF}  gzseek(zfile, 1, SEEK_CUR); (* add one zero byte *)  gzclose(zfile);  zfile := gzopen(fname, 'rb');  if zfile = NIL then  begin    WriteLn('gzopen error');    Halt(1);  end;  StrCopy(PChar(uncompr), 'garbage');  if gzread(zfile, uncompr, uncomprLen) <> len then  begin    WriteLn('gzread err: ', gzerror(zfile, err));    Halt(1);  end;  if StrComp(PChar(uncompr), hello) <> 0 then  begin    WriteLn('bad gzread: ', PChar(uncompr));    Halt(1);  end  else    WriteLn('gzread(): ', PChar(uncompr));  pos := gzseek(zfile, -8, SEEK_CUR);  if (pos <> 6) or (gztell(zfile) <> pos) then  begin    WriteLn('gzseek error, pos=', pos, ', gztell=', gztell(zfile));    Halt(1);  end;  if gzgetc(zfile) <> ' ' then  begin    WriteLn('gzgetc error');    Halt(1);  end;  if gzungetc(' ', zfile) <> ' ' then  begin    WriteLn('gzungetc error');    Halt(1);  end;  gzgets(zfile, PChar(uncompr), uncomprLen);  uncomprLen := StrLen(PChar(uncompr));  if uncomprLen <> 7 then (* " hello!" *)  begin    WriteLn('gzgets err after gzseek: ', gzerror(zfile, err));    Halt(1);  end;  if StrComp(PChar(uncompr), hello + 6) <> 0 then  begin    WriteLn('bad gzgets after gzseek');    Halt(1);  end  else    WriteLn('gzgets() after gzseek: ', PChar(uncompr));  gzclose(zfile);end;{$ENDIF}(* =========================================================================== * Test deflate with small buffers *){$IFDEF TEST_DEFLATE}procedure test_deflate(compr: Pointer; comprLen: LongInt);var c_stream: z_stream; (* compression stream *)    err: Integer;    len: LongInt;begin  len := StrLen(hello)+1;  c_stream.zalloc := NIL;  c_stream.zfree := NIL;  c_stream.opaque := NIL;  err := deflateInit(c_stream, Z_DEFAULT_COMPRESSION);  CHECK_ERR(err, 'deflateInit');  c_stream.next_in := hello;  c_stream.next_out := compr;  while (c_stream.total_in <> len) and        (c_stream.total_out < comprLen) do  begin    c_stream.avail_out := 1; { force small buffers }    c_stream.avail_in := 1;    err := deflate(c_stream, Z_NO_FLUSH);    CHECK_ERR(err, 'deflate');  end;  (* Finish the stream, still forcing small buffers: *)  while TRUE do  begin    c_stream.avail_out := 1;    err := deflate(c_stream, Z_FINISH);    if err = Z_STREAM_END then      break;    CHECK_ERR(err, 'deflate');  end;  err := deflateEnd(c_stream);  CHECK_ERR(err, 'deflateEnd');end;{$ENDIF}(* =========================================================================== * Test inflate with small buffers *){$IFDEF TEST_INFLATE}procedure test_inflate(compr: Pointer; comprLen : LongInt;                       uncompr: Pointer; uncomprLen : LongInt);var err: Integer;    d_stream: z_stream; (* decompression stream *)begin  StrCopy(PChar(uncompr), 'garbage');  d_stream.zalloc := NIL;  d_stream.zfree := NIL;  d_stream.opaque := NIL;  d_stream.next_in := compr;  d_stream.avail_in := 0;  d_stream.next_out := uncompr;  err := inflateInit(d_stream);  CHECK_ERR(err, 'inflateInit');  while (d_stream.total_out < uncomprLen) and        (d_stream.total_in < comprLen) do  begin    d_stream.avail_out := 1; (* force small buffers *)    d_stream.avail_in := 1;    err := inflate(d_stream, Z_NO_FLUSH);    if err = Z_STREAM_END then      break;    CHECK_ERR(err, 'inflate');  end;  err := inflateEnd(d_stream);  CHECK_ERR(err, 'inflateEnd');  if StrComp(PChar(uncompr), hello) <> 0 then    EXIT_ERR('bad inflate')  else    WriteLn('inflate(): ', PChar(uncompr));end;{$ENDIF}(* =========================================================================== * Test deflate with large buffers and dynamic change of compression level *){$IFDEF TEST_DEFLATE}procedure test_large_deflate(compr: Pointer; comprLen: LongInt;                             uncompr: Pointer; uncomprLen: LongInt);var c_stream: z_stream; (* compression stream *)    err: Integer;begin  c_stream.zalloc := NIL;  c_stream.zfree := NIL;  c_stream.opaque := NIL;  err := deflateInit(c_stream, Z_BEST_SPEED);  CHECK_ERR(err, 'deflateInit');  c_stream.next_out := compr;  c_stream.avail_out := Integer(comprLen);  (* At this point, uncompr is still mostly zeroes, so it should compress   * very well:   *)  c_stream.next_in := uncompr;  c_stream.avail_in := Integer(uncomprLen);  err := deflate(c_stream, Z_NO_FLUSH);  CHECK_ERR(err, 'deflate');  if c_stream.avail_in <> 0 then    EXIT_ERR('deflate not greedy');  (* Feed in already compressed data and switch to no compression: *)  deflateParams(c_stream, Z_NO_COMPRESSION, Z_DEFAULT_STRATEGY);  c_stream.next_in := compr;  c_stream.avail_in := Integer(comprLen div 2);

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日本高清视频一区二区| 懂色av一区二区在线播放| 精品一区二区三区av| 成人激情小说网站| 制服丝袜中文字幕亚洲| 久久综合成人精品亚洲另类欧美| 欧美国产日韩一二三区| 亚洲国产精品天堂| 99vv1com这只有精品| 久久一区二区视频| 亚洲成a人片在线不卡一二三区| 国产成人亚洲综合a∨婷婷图片| 欧美三级韩国三级日本三斤| 国产精品灌醉下药二区| 国产真实精品久久二三区| 欧美日韩成人高清| 亚洲人成影院在线观看| 国产成人午夜片在线观看高清观看 | 日本特黄久久久高潮| 亚洲私人黄色宅男| www.欧美日韩| 欧美mv日韩mv| 男女性色大片免费观看一区二区 | 国产欧美一区在线| 免费亚洲电影在线| 欧美日韩国产另类一区| 亚洲国产成人91porn| 欧美日韩在线免费视频| 一区二区不卡在线视频 午夜欧美不卡在| 国产成人免费xxxxxxxx| 久久一区二区三区四区| 国产麻豆视频一区| 久久久精品综合| 国产剧情一区在线| 久久久久亚洲综合| 国产91对白在线观看九色| 久久综合国产精品| 国产91精品一区二区麻豆亚洲| 日韩欧美国产午夜精品| 久久国产生活片100| 日韩女优制服丝袜电影| 国产美女av一区二区三区| 精品国产电影一区二区| 国产精品一二三四五| 国产欧美精品一区二区色综合朱莉| 国产激情一区二区三区桃花岛亚洲| 久久久久久久久免费| 成人精品鲁一区一区二区| 中文字幕永久在线不卡| 91麻豆精品一区二区三区| 亚洲国产日韩在线一区模特| 欧美美女网站色| 国模一区二区三区白浆| 欧美国产禁国产网站cc| 91捆绑美女网站| 视频一区在线视频| 国产精品欧美综合在线| 91在线小视频| 日韩av在线播放中文字幕| 欧美成人高清电影在线| 不卡一二三区首页| 天天射综合影视| 久久久综合网站| 在线免费观看成人短视频| 日本女人一区二区三区| 中文欧美字幕免费| 欧美情侣在线播放| 国产精品一区久久久久| 亚洲愉拍自拍另类高清精品| 欧美电影免费观看完整版| 不卡av在线网| 日韩精品欧美精品| 国产欧美中文在线| 91精品午夜视频| 91美女福利视频| 精品一区二区三区免费| 亚洲日韩欧美一区二区在线| 欧美mv日韩mv亚洲| av爱爱亚洲一区| 日韩专区一卡二卡| 最新欧美精品一区二区三区| 欧美一区二区三区电影| 91麻豆精品一区二区三区| 国产在线播放一区| 亚洲不卡一区二区三区| 国产精品白丝在线| 欧美成人官网二区| 欧美日韩国产影片| 色综合天天性综合| 成人国产电影网| 国模娜娜一区二区三区| 视频一区欧美日韩| 亚洲人成在线观看一区二区| 久久久精品天堂| 欧美成人精精品一区二区频| 欧美人妖巨大在线| 欧美日免费三级在线| 99久久综合狠狠综合久久| 国产一区二区在线影院| 免费在线一区观看| 亚洲国产另类精品专区| 亚洲欧美日韩成人高清在线一区| 国产无人区一区二区三区| 日韩午夜激情免费电影| 欧美日韩一区二区电影| 色综合亚洲欧洲| 色吧成人激情小说| 91视视频在线直接观看在线看网页在线看 | 欧美午夜片在线看| 色综合天天性综合| 91麻豆精品视频| 色偷偷久久一区二区三区| 成人国产免费视频| av激情成人网| 一本到高清视频免费精品| 99久久夜色精品国产网站| www.成人网.com| av亚洲精华国产精华精| av在线免费不卡| 色综合久久99| 欧美手机在线视频| 3atv一区二区三区| 久久亚洲影视婷婷| 国产丝袜在线精品| 亚洲国产成人私人影院tom| 国产精品大尺度| 一区二区三区免费在线观看| 亚洲精品大片www| 午夜久久久久久| 日本三级亚洲精品| 国产一区欧美一区| 成人国产精品免费网站| 91丝袜国产在线播放| 欧美影院一区二区| 日韩免费观看2025年上映的电影| 精品欧美一区二区在线观看| 国产亚洲制服色| 亚洲最大成人网4388xx| 天天影视涩香欲综合网| 国产精品亚洲第一区在线暖暖韩国 | 69p69国产精品| 日韩精品在线看片z| 亚洲国产精品精华液2区45| 亚洲男人电影天堂| 蜜臀av亚洲一区中文字幕| 成人午夜看片网址| 欧美日韩一区高清| 精品国产1区二区| 中文字幕亚洲在| 婷婷丁香久久五月婷婷| 国产一区二区不卡在线 | 精品久久久久久久久久久久包黑料 | www.欧美色图| 日韩欧美在线综合网| 国产精品全国免费观看高清| 亚洲成av人片一区二区三区 | 热久久国产精品| 成人小视频在线| 欧美男生操女生| 中文字幕日韩一区| 免费成人深夜小野草| 91丨porny丨国产| ww久久中文字幕| 首页欧美精品中文字幕| a级高清视频欧美日韩| 日韩视频免费观看高清完整版 | 国产成人福利片| 欧美精选午夜久久久乱码6080| 久久久蜜臀国产一区二区| 亚洲成av人综合在线观看| 成人av电影免费观看| 亚洲精品在线一区二区| 午夜影院久久久| 99久精品国产| 久久精品一区二区| 免费人成在线不卡| 欧美曰成人黄网| 亚洲欧美日韩中文播放 | 综合中文字幕亚洲| 国产精品亚洲综合一区在线观看| 欧美久久久久久蜜桃| 亚洲六月丁香色婷婷综合久久 | 亚洲综合色区另类av| 国产.欧美.日韩| 26uuu另类欧美| 韩国三级电影一区二区| 欧美日本不卡视频| 亚洲一区在线观看网站| 99久久国产综合精品色伊| 国产亚洲精品资源在线26u| 蜜臀av性久久久久蜜臀aⅴ四虎 | 91福利小视频| 亚洲天天做日日做天天谢日日欢| 国产精品亚洲第一区在线暖暖韩国 | 另类小说视频一区二区| 欧美人伦禁忌dvd放荡欲情| 一区二区三区成人在线视频| 色欧美乱欧美15图片| 亚洲欧美日韩小说| 在线免费观看日韩欧美|