Class TZipFile (unit UnZipLib)

Inherits from

TObject

point to header in memory

Constructors


constructor Create;



Functions

destructor Destroy;


function GetFileSize (const filename: string): integer;

point past the signature field

function PKFindFirst (var buffer: TPKSearchRecord): boolean;


function PKFindNext: boolean;


function PKSrchRecToStr (const pk: TPKSearchRecord): string;


function UnzipFileToBuffer (const name: string; var buffer; buffer_size: integer): integer;

Reads a file from a Zip library into a user's buffer, returns the number of bytes actually read (or raises exceptions for the problems

function decode_date (const date: Word): string;

"stored" compression method - just copy the bytes

function decode_time (const time: Word): string;


procedure SetZipFilename (name: string);


Properties

property ZipFilename : String


Events

Variables

FFilebase : Pointer;


FFileList : TStringList;


FFindBuffer : ^TPKSearchRecord;


FFindPointer : Pointer;


file_handle : THandle;


file_mapping : THandle;


FZipFilename : String;



Constructors


constructor Create;


Functions


destructor Destroy;


function GetFileSize (const filename: string): integer;

point past the signature field


function PKFindFirst (var buffer: TPKSearchRecord): boolean;


function PKFindNext: boolean;


function PKSrchRecToStr (const pk: TPKSearchRecord): string;


function UnzipFileToBuffer (const name: string; var buffer; buffer_size: integer): integer;

Reads a file from a Zip library into a user's buffer, returns the number of bytes actually read (or raises exceptions for the problems


function decode_date (const date: Word): string;

"stored" compression method - just copy the bytes


function decode_time (const time: Word): string;


procedure SetZipFilename (name: string);


Properties


property ZipFilename : String


Events


Variables


FFilebase : Pointer;


FFileList : TStringList;


FFindBuffer : ^TPKSearchRecord;


FFindPointer : Pointer;


file_handle : THandle;


file_mapping : THandle;


FZipFilename : String;