Class TCefZipReaderRef

Description
Hierarchy
Fields
Methods
Properties

Unit

Declaration

type TCefZipReaderRef = class(TCefBaseRefCountedRef, ICefZipReader)

Description

Class that supports the reading of zip archives via the zlib unzip API. The functions of this interface should only be called on the thread that creates the object.

UNKNOWN

<see href="https://bitbucket.org/chromiumembedded/cef/src/master/include/capi/cef_zip_reader_capi.h">CEF source file: /include/capi/cef_zip_reader_capi.h (cef_zip_reader_t))

Hierarchy

Overview

Methods

Protected function MoveToFirstFile: Boolean;
Protected function MoveToNextFile: Boolean;
Protected function MoveToFile(const fileName: ustring; caseSensitive: Boolean): Boolean;
Protected function Close: Boolean;
Protected function GetFileName: ustring;
Protected function GetFileSize: Int64;
Protected function GetFileLastModified: TCefBaseTime;
Protected function OpenFile(const password: ustring): Boolean;
Protected function CloseFile: Boolean;
Protected function ReadFile(buffer: Pointer; bufferSize: NativeUInt): Integer;
Protected function Tell: Int64;
Protected function Eof: Boolean;
Public class function UnWrap(data: Pointer): ICefZipReader;
Public class function New(const stream: ICefStreamReader): ICefZipReader;

Description

Methods

Protected function MoveToFirstFile: Boolean;

Moves the cursor to the first file in the archive. Returns true (1) if the cursor position was set successfully.

Protected function MoveToNextFile: Boolean;

Moves the cursor to the next file in the archive. Returns true (1) if the cursor position was set successfully.

Protected function MoveToFile(const fileName: ustring; caseSensitive: Boolean): Boolean;

Moves the cursor to the specified file in the archive. If |caseSensitive| is true (1) then the search will be case sensitive. Returns true (1) if the cursor position was set successfully.

Protected function Close: Boolean;

Closes the archive. This should be called directly to ensure that cleanup occurs on the correct thread.

Protected function GetFileName: ustring;

Returns the name of the file.

Protected function GetFileSize: Int64;

Returns the uncompressed size of the file.

Protected function GetFileLastModified: TCefBaseTime;

Returns the last modified timestamp for the file.

Protected function OpenFile(const password: ustring): Boolean;

Opens the file for reading of uncompressed data. A read password may optionally be specified.

Protected function CloseFile: Boolean;

Closes the file.

Protected function ReadFile(buffer: Pointer; bufferSize: NativeUInt): Integer;

Read uncompressed file contents into the specified buffer. Returns < 0 if an error occurred, 0 if at the end of file, or the number of bytes read.

Protected function Tell: Int64;

Returns the current offset in the uncompressed file contents.

Protected function Eof: Boolean;

Returns true (1) if at end of the file contents.

Public class function UnWrap(data: Pointer): ICefZipReader;

This item has no description.

Public class function New(const stream: ICefStreamReader): ICefZipReader;

This item has no description.


Generated by PasDoc 0.16.0-snapshot.