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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? zlib.pas

?? funambol windows mobile plugin source code, the source code is taken from the funambol site
?? PAS
?? 第 1 頁 / 共 2 頁
字號:
{*******************************************************}
{                                                       }
{       Delphi Supplemental Components                  }
{       ZLIB Data Compression Interface Unit            }
{                                                       }
{       Copyright (c) 1997 Borland International        }
{                                                       }
{*******************************************************}

{ Modified for zlib 1.1.3 by Davide Moretti <dave@rimini.com }

unit zlib;

interface

uses Sysutils, Classes;

type
  TAlloc = function (AppData: Pointer; Items, Size: Integer): Pointer;
  TFree = procedure (AppData, Block: Pointer);

  // Internal structure.  Ignore.
  TZStreamRec = packed record
    next_in: PChar;       // next input byte
    avail_in: Integer;    // number of bytes available at next_in
    total_in: Integer;    // total nb of input bytes read so far

    next_out: PChar;      // next output byte should be put here
    avail_out: Integer;   // remaining free space at next_out
    total_out: Integer;   // total nb of bytes output so far

    msg: PChar;           // last error message, NULL if no error
    internal: Pointer;    // not visible by applications

    zalloc: TAlloc;       // used to allocate the internal state
    zfree: TFree;         // used to free the internal state
    AppData: Pointer;     // private data object passed to zalloc and zfree

    data_type: Integer;   //  best guess about the data type: ascii or binary
    adler: Integer;       // adler32 value of the uncompressed data
    reserved: Integer;    // reserved for future use
  end;

  // Abstract ancestor class
  TCustomZlibStream = class(TStream)
  private
    FStrm: TStream;
    FStrmPos: Integer;
    FOnProgress: TNotifyEvent;
    FZRec: TZStreamRec;
    FBuffer: array [Word] of Char;
  protected
    procedure Progress(Sender: TObject); dynamic;
    property OnProgress: TNotifyEvent read FOnProgress write FOnProgress;
    constructor Create(Strm: TStream);
  end;

{ TCompressionStream compresses data on the fly as data is written to it, and
  stores the compressed data to another stream.

  TCompressionStream is write-only and strictly sequential. Reading from the
  stream will raise an exception. Using Seek to move the stream pointer
  will raise an exception.

  Output data is cached internally, written to the output stream only when
  the internal output buffer is full.  All pending output data is flushed
  when the stream is destroyed.

  The Position property returns the number of uncompressed bytes of
  data that have been written to the stream so far.

  CompressionRate returns the on-the-fly percentage by which the original
  data has been compressed:  (1 - (CompressedBytes / UncompressedBytes)) * 100
  If raw data size = 100 and compressed data size = 25, the CompressionRate
  is 75%

  The OnProgress event is called each time the output buffer is filled and
  written to the output stream.  This is useful for updating a progress
  indicator when you are writing a large chunk of data to the compression
  stream in a single call.}


  TCompressionLevel = (clNone, clFastest, clDefault, clMax);

  TCompressionStream = class(TCustomZlibStream)
  private
    function GetCompressionRate: Single;
  public
    constructor Create(CompressionLevel: TCompressionLevel; Dest: TStream);
    destructor Destroy; override;
    function Read(var Buffer; Count: Longint): Longint; override;
    function Write(const Buffer; Count: Longint): Longint; override;
    function Seek(Offset: Longint; Origin: Word): Longint; override;
    property CompressionRate: Single read GetCompressionRate;
    property OnProgress;
  end;

{ TDecompressionStream decompresses data on the fly as data is read from it.

  Compressed data comes from a separate source stream.  TDecompressionStream
  is read-only and unidirectional; you can seek forward in the stream, but not
  backwards.  The special case of setting the stream position to zero is
  allowed.  Seeking forward decompresses data until the requested position in
  the uncompressed data has been reached.  Seeking backwards, seeking relative
  to the end of the stream, requesting the size of the stream, and writing to
  the stream will raise an exception.

  The Position property returns the number of bytes of uncompressed data that
  have been read from the stream so far.

  The OnProgress event is called each time the internal input buffer of
  compressed data is exhausted and the next block is read from the input stream.
  This is useful for updating a progress indicator when you are reading a
  large chunk of data from the decompression stream in a single call.}

  TDecompressionStream = class(TCustomZlibStream)
  public
    constructor Create(Source: TStream);
    destructor Destroy; override;
    function Read(var Buffer; Count: Longint): Longint; override;
    function Write(const Buffer; Count: Longint): Longint; override;
    function Seek(Offset: Longint; Origin: Word): Longint; override;
    property OnProgress;
  end;



{ CompressBuf compresses data, buffer to buffer, in one call.
   In: InBuf = ptr to compressed data
       InBytes = number of bytes in InBuf
  Out: OutBuf = ptr to newly allocated buffer containing decompressed data
       OutBytes = number of bytes in OutBuf   }
procedure CompressBuf(const InBuf: Pointer; InBytes: Integer;
                      out OutBuf: Pointer; out OutBytes: Integer);


{ DecompressBuf decompresses data, buffer to buffer, in one call.
   In: InBuf = ptr to compressed data
       InBytes = number of bytes in InBuf
       OutEstimate = zero, or est. size of the decompressed data
  Out: OutBuf = ptr to newly allocated buffer containing decompressed data
       OutBytes = number of bytes in OutBuf   }
procedure DecompressBuf(const InBuf: Pointer; InBytes: Integer;
 OutEstimate: Integer; out OutBuf: Pointer; out OutBytes: Integer);

const
  zlib_version = '1.1.3';

type
  EZlibError = class(Exception);
  ECompressionError = class(EZlibError);
  EDecompressionError = class(EZlibError);

function adler32(adler: Integer; buf: PChar; len: Integer): Integer;

implementation

const
  Z_NO_FLUSH      = 0;
  Z_PARTIAL_FLUSH = 1;
  Z_SYNC_FLUSH    = 2;
  Z_FULL_FLUSH    = 3;
  Z_FINISH        = 4;

  Z_OK            = 0;
  Z_STREAM_END    = 1;
  Z_NEED_DICT     = 2;
  Z_ERRNO         = (-1);
  Z_STREAM_ERROR  = (-2);
  Z_DATA_ERROR    = (-3);
  Z_MEM_ERROR     = (-4);
  Z_BUF_ERROR     = (-5);
  Z_VERSION_ERROR = (-6);

  Z_NO_COMPRESSION       =   0;
  Z_BEST_SPEED           =   1;
  Z_BEST_COMPRESSION     =   9;
  Z_DEFAULT_COMPRESSION  = (-1);

  Z_FILTERED            = 1;
  Z_HUFFMAN_ONLY        = 2;
  Z_DEFAULT_STRATEGY    = 0;

  Z_BINARY   = 0;
  Z_ASCII    = 1;
  Z_UNKNOWN  = 2;

  Z_DEFLATED = 8;

  _z_errmsg: array[0..9] of PChar = (
    'need dictionary',      // Z_NEED_DICT      (2)
    'stream end',           // Z_STREAM_END     (1)
    '',                     // Z_OK             (0)
    'file error',           // Z_ERRNO          (-1)
    'stream error',         // Z_STREAM_ERROR   (-2)
    'data error',           // Z_DATA_ERROR     (-3)
    'insufficient memory',  // Z_MEM_ERROR      (-4)
    'buffer error',         // Z_BUF_ERROR      (-5)
    'incompatible version', // Z_VERSION_ERROR  (-6)
    ''
  );

{$L deflate.obj}
{$L inflate.obj}
{$L inftrees.obj}
{$L trees.obj}
{$L adler32.obj}
{$L infblock.obj}
{$L infcodes.obj}
{$L infutil.obj}
{$L inffast.obj}

procedure _tr_init; external;
procedure _tr_tally; external;
procedure _tr_flush_block; external;
procedure _tr_align; external;
procedure _tr_stored_block; external;
function adler32; external;
procedure inflate_blocks_new; external;
procedure inflate_blocks; external;
procedure inflate_blocks_reset; external;
procedure inflate_blocks_free; external;
procedure inflate_set_dictionary; external;
procedure inflate_trees_bits; external;
procedure inflate_trees_dynamic; external;
procedure inflate_trees_fixed; external;
procedure inflate_codes_new; external;
procedure inflate_codes; external;
procedure inflate_codes_free; external;
procedure _inflate_mask; external;
procedure inflate_flush; external;
procedure inflate_fast; external;

procedure _memset(P: Pointer; B: Byte; count: Integer);cdecl;
begin
  FillChar(P^, count, B);
end;

procedure _memcpy(dest, source: Pointer; count: Integer);cdecl;
begin
  Move(source^, dest^, count);
end;



// deflate compresses data
function deflateInit_(var strm: TZStreamRec; level: Integer; version: PChar;
  recsize: Integer): Integer; external;
function deflate(var strm: TZStreamRec; flush: Integer): Integer; external;
function deflateEnd(var strm: TZStreamRec): Integer; external;

// inflate decompresses data
function inflateInit_(var strm: TZStreamRec; version: PChar;
  recsize: Integer): Integer; external;
function inflate(var strm: TZStreamRec; flush: Integer): Integer; external;
function inflateEnd(var strm: TZStreamRec): Integer; external;
function inflateReset(var strm: TZStreamRec): Integer; external;


function zcalloc(AppData: Pointer; Items, Size: Integer): Pointer;
begin
  GetMem(Result, Items*Size);
end;

procedure zcfree(AppData, Block: Pointer);
begin
  FreeMem(Block);
end;

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品66部| 91精品免费观看| 欧美日韩免费一区二区三区视频| 欧美久久久久久久久中文字幕| 久久久久久久久蜜桃| 午夜精品一区二区三区免费视频| 高清视频一区二区| 日韩女优毛片在线| 亚洲国产精品久久人人爱蜜臀| 国产一区二区h| 欧美mv和日韩mv国产网站| 一区二区三区精品视频在线| 国产一区二区按摩在线观看| 日韩一卡二卡三卡| 日韩国产高清在线| 欧美日韩免费高清一区色橹橹| 国产精品久线在线观看| 国产二区国产一区在线观看| 精品日韩在线一区| 日本欧美一区二区三区| 欧美丝袜丝nylons| 亚洲三级在线免费| 91在线视频播放地址| 国产校园另类小说区| 激情都市一区二区| 久久免费看少妇高潮| 久久99深爱久久99精品| 日韩一二三区视频| 七七婷婷婷婷精品国产| 在线播放欧美女士性生活| 亚洲国产精品视频| 欧美日韩亚洲综合在线| 午夜一区二区三区在线观看| 欧美四级电影网| 日本三级韩国三级欧美三级| 日韩午夜激情视频| 久久精品国产亚洲高清剧情介绍 | 亚洲二区视频在线| 色综合久久久久久久久久久| 亚洲欧美区自拍先锋| 色综合久久中文字幕综合网| 亚洲综合色成人| 欧美日韩国产综合一区二区| 午夜电影一区二区三区| 日韩午夜中文字幕| 国产精品小仙女| 国产精品超碰97尤物18| 91久久精品国产91性色tv| 亚洲综合在线五月| 51精品秘密在线观看| 久久超碰97中文字幕| 久久精品日产第一区二区三区高清版| 国产福利一区在线| 亚洲精品亚洲人成人网在线播放| 欧美系列亚洲系列| 九九精品一区二区| 亚洲国产成人午夜在线一区| 欧美中文字幕亚洲一区二区va在线 | 亚洲欧美在线观看| 欧美综合一区二区| 久久黄色级2电影| 亚洲欧洲一区二区三区| 欧美久久一二三四区| 国产精品自拍三区| 亚洲国产精品一区二区久久| 日韩欧美123| 色综合天天天天做夜夜夜夜做| 亚洲成人资源在线| 国产精品无码永久免费888| 在线观看不卡一区| 国产一区欧美日韩| 亚洲国产日产av| 国产欧美日韩在线看| 欧美女孩性生活视频| 国产a精品视频| 蜜芽一区二区三区| 亚洲欧美电影院| 久久久久久久性| 制服丝袜亚洲色图| 91丨porny丨最新| 韩国三级电影一区二区| 亚洲综合精品自拍| 国产欧美视频一区二区| 欧美男生操女生| caoporen国产精品视频| 秋霞电影网一区二区| 一区二区三区在线免费播放| 亚洲精品在线免费观看视频| 欧美亚洲另类激情小说| 成人精品高清在线| 国产专区综合网| 日韩精品色哟哟| 亚洲精品国产精华液| 2023国产一二三区日本精品2022| 欧美色网一区二区| 99麻豆久久久国产精品免费优播| 九九国产精品视频| 美女网站色91| 婷婷国产v国产偷v亚洲高清| 国产精品美女久久久久av爽李琼| www久久久久| 欧美成人女星排行榜| 91麻豆精品国产91久久久更新时间 | 亚洲免费观看高清在线观看| 2021久久国产精品不只是精品| 欧美日韩成人一区二区| 欧美性猛交xxxx乱大交退制版| 成人高清视频免费观看| 国产成人亚洲精品狼色在线 | 一区二区不卡在线视频 午夜欧美不卡在 | 日本一区二区免费在线| 久久综合九色综合欧美98| 3atv一区二区三区| 欧美日韩精品免费观看视频| 一本色道久久综合亚洲91 | 久草中文综合在线| 免费在线观看视频一区| 午夜精品久久久久久久久久久| 亚洲综合清纯丝袜自拍| 一区二区免费视频| 亚洲成av人片在线观看无码| 性感美女极品91精品| 日本特黄久久久高潮 | 日产国产欧美视频一区精品| 天天影视色香欲综合网老头| 午夜成人免费电影| 日本午夜精品一区二区三区电影| 日韩精品一区第一页| 日本成人在线不卡视频| 久久se这里有精品| 国产iv一区二区三区| 93久久精品日日躁夜夜躁欧美| av影院午夜一区| 91国偷自产一区二区使用方法| 欧美亚洲愉拍一区二区| 7777女厕盗摄久久久| 精品国产91久久久久久久妲己 | 日韩西西人体444www| 久久免费视频色| 综合久久综合久久| 天天综合天天做天天综合| 国产在线精品一区二区夜色| 粉嫩一区二区三区性色av| 色综合天天做天天爱| 日韩色视频在线观看| 国产精品丝袜一区| 亚洲国产精品一区二区久久| 久久99国产精品尤物| 不卡影院免费观看| 欧美巨大另类极品videosbest | 欧美不卡一区二区| 国产精品乱人伦一区二区| 亚洲免费视频成人| 国产一区二区在线电影| 色综合久久综合网| 精品久久久三级丝袜| 日韩一区在线看| 精品一区二区国语对白| 91最新地址在线播放| 日韩欧美的一区二区| 亚洲视频在线观看一区| 久久精品久久99精品久久| 成人看片黄a免费看在线| 在线播放中文一区| 亚洲欧美福利一区二区| 国产精品一区二区视频| 91麻豆精品国产91久久久资源速度 | 亚洲自拍偷拍九九九| 国产呦萝稀缺另类资源| 欧美另类videos死尸| 亚洲欧洲国产日本综合| 极品尤物av久久免费看| 欧美三日本三级三级在线播放| 欧美—级在线免费片| 老汉av免费一区二区三区| 欧美视频一区二区三区| 一区在线播放视频| 懂色av中文一区二区三区| 欧美大片在线观看一区二区| 亚洲图片欧美视频| 99精品热视频| 国产精品污网站| 国产精品综合久久| 精品欧美一区二区在线观看| 午夜不卡av免费| 精品视频在线免费观看| 亚洲最大成人网4388xx| 色综合天天综合在线视频| 国产精品久久久久久久午夜片| 国产精品一二三四| 久久精品人人做| 国产电影一区在线| 久久久777精品电影网影网| 国产一区二区免费看| 日韩免费看网站| 美女视频黄 久久| 精品欧美久久久| 韩国精品久久久| 久久精品一区二区三区av| 国产乱人伦偷精品视频免下载|