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

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

?? zlib.pas

?? Evc編的一個在wince5.0上運行的flash播放器
?? 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一区二区三区免费野_久草精品视频
粉嫩av亚洲一区二区图片| 亚洲v精品v日韩v欧美v专区 | 亚洲一区中文日韩| 在线精品视频一区二区三四| 亚洲一区二区三区激情| 在线91免费看| 国产在线观看免费一区| 国产精品电影一区二区三区| 色悠悠久久综合| 亚洲18女电影在线观看| 日韩免费高清电影| 国产精品99久久久久久有的能看| 国产精品成人网| 欧美日韩国产另类一区| 韩国v欧美v亚洲v日本v| 国产精品护士白丝一区av| 在线观看一区不卡| 韩国v欧美v日本v亚洲v| 亚洲裸体xxx| 日韩欧美一区电影| 97精品电影院| 日韩av电影天堂| 精品va天堂亚洲国产| 99久久综合99久久综合网站| 五月综合激情网| 中文字幕精品一区| 91精品国产欧美一区二区成人| 国产精品18久久久久| 亚洲综合偷拍欧美一区色| 精品国产污污免费网站入口| 99久久伊人精品| 成人性生交大片免费看中文 | 国产网红主播福利一区二区| 色综合中文综合网| 欧美日韩一区在线| 国产成人亚洲综合a∨婷婷图片| 亚洲在线一区二区三区| 日韩精品在线一区二区| 91麻豆自制传媒国产之光| 精品亚洲porn| 亚洲成av人影院| 国产精品成人网| 久久久国产精品不卡| 欧美日韩电影在线播放| 不卡视频一二三四| 黄色日韩三级电影| 日韩和的一区二区| 亚洲精品乱码久久久久久黑人| 欧美精品一区二区三区蜜桃视频 | 色综合激情五月| 国产成人精品免费一区二区| 欧美96一区二区免费视频| 一区二区三区丝袜| 亚洲日本在线观看| 国产精品视频线看| 久久综合成人精品亚洲另类欧美 | 久久亚洲二区三区| 欧美一区二区精品在线| 欧美视频一区在线观看| 91在线一区二区三区| 懂色一区二区三区免费观看| 久久精品国产**网站演员| 日韩av网站在线观看| 日韩在线观看一区二区| 亚洲成人av免费| 午夜视频在线观看一区二区| 一区二区三区在线观看欧美| 日韩理论片中文av| 日韩一区在线看| 中文字幕一区二区在线观看| 久久精品一区二区三区四区| 精品免费99久久| 精品少妇一区二区三区在线播放 | 国产精品欧美一区喷水| 久久综合色婷婷| 久久精品视频免费| 欧美激情在线看| 国产精品视频一二三| 国产精品久久久久久久久图文区 | 久久久www免费人成精品| 欧美第一区第二区| 26uuu亚洲综合色欧美| 精品国产麻豆免费人成网站| 久久综合狠狠综合久久激情| 久久久99精品久久| 国产精品乱人伦中文| 国产精品伦一区| 一区二区三区在线免费视频| 亚洲午夜精品17c| 日日夜夜免费精品视频| 久久99久久久久| 国产精品综合av一区二区国产馆| 风间由美中文字幕在线看视频国产欧美| 国产传媒欧美日韩成人| 99久久婷婷国产综合精品电影| 色国产精品一区在线观看| 欧美日韩一区成人| 精品噜噜噜噜久久久久久久久试看| 2021中文字幕一区亚洲| 国产精品乱人伦| 一区二区在线观看视频| 青青草成人在线观看| 国产成人无遮挡在线视频| gogogo免费视频观看亚洲一| 欧美三级中文字幕在线观看| 欧美一区欧美二区| 国产日韩欧美亚洲| 亚洲一区二区三区四区不卡| 免费成人在线影院| av在线不卡电影| 欧美日韩www| 国产午夜三级一区二区三| 亚洲欧美电影院| 久久99精品久久久久久国产越南| 不卡视频一二三| 日韩欧美123| 亚洲视频1区2区| 精品一区二区在线视频| 色菇凉天天综合网| 欧美精品一区二区三区蜜臀| 樱桃国产成人精品视频| 国产精品一区二区久久精品爱涩| 91免费版在线看| 精品久久久久久久久久久院品网| 国产精品国产三级国产有无不卡| 午夜不卡av免费| 91免费视频网| 久久久国产一区二区三区四区小说 | 欧美成va人片在线观看| 精品国产一区二区亚洲人成毛片 | 成人美女视频在线观看18| 欧美高清dvd| 国产精品美女久久久久久2018 | 中文字幕日韩一区| 精品一区二区日韩| 欧美午夜精品一区| 亚洲欧洲av另类| 国产精品系列在线播放| 91精品久久久久久蜜臀| 中文字幕亚洲精品在线观看| 国内成+人亚洲+欧美+综合在线| 欧美色电影在线| 亚洲天堂免费看| 成人美女视频在线观看| 久久影院午夜片一区| 天天爽夜夜爽夜夜爽精品视频| 99精品视频中文字幕| 久久久噜噜噜久久中文字幕色伊伊| 亚洲成人先锋电影| 色国产综合视频| 亚洲品质自拍视频网站| 成人免费视频播放| 久久久久青草大香线综合精品| 视频一区免费在线观看| 在线精品观看国产| 亚洲精品写真福利| 91网站在线播放| 国产精品超碰97尤物18| 高清久久久久久| 国产偷国产偷精品高清尤物| 极品美女销魂一区二区三区免费 | 日韩av一二三| 欧美日韩1234| 一级做a爱片久久| 一本久久a久久免费精品不卡| **网站欧美大片在线观看| 粉嫩av一区二区三区在线播放| 久久精品亚洲一区二区三区浴池| 久久精品国产99| 日韩精品一区二区在线| 日本一不卡视频| 欧美一区二区视频网站| 麻豆传媒一区二区三区| 日韩视频永久免费| 麻豆精品国产传媒mv男同| 26uuu精品一区二区 | 91免费观看在线| 一区二区三区视频在线观看| 欧美三级电影网| 奇米影视一区二区三区小说| 欧美电影在哪看比较好| 美腿丝袜亚洲综合| 久久精品一区二区| 91麻豆swag| 日韩主播视频在线| 精品成人一区二区| hitomi一区二区三区精品| 亚洲综合丝袜美腿| 日韩欧美在线1卡| 国产精品一区二区在线播放| 国产精品免费看片| 欧美日韩在线免费视频| 久久国产三级精品| 国产精品久线观看视频| 在线视频国内自拍亚洲视频| 蜜桃视频免费观看一区| 中文幕一区二区三区久久蜜桃| 色天天综合色天天久久| 麻豆国产精品官网| 日精品一区二区|