Chromium Embedded Framework (CEF)
109.0.1+gcd5e37a+chromium-109.0.5414.8
|
Class that supports the reading of zip archives via the zlib unzip API. More...
#include "include/cef_zip_reader.h"
Public Member Functions | |
virtual bool | MoveToFirstFile ()=0 |
Moves the cursor to the first file in the archive. More... | |
virtual bool | MoveToNextFile ()=0 |
Moves the cursor to the next file in the archive. More... | |
virtual bool | MoveToFile (const CefString &fileName, bool caseSensitive)=0 |
Moves the cursor to the specified file in the archive. More... | |
virtual bool | Close ()=0 |
Closes the archive. More... | |
virtual CefString | GetFileName ()=0 |
The below methods act on the file at the current cursor position. More... | |
virtual int64 | GetFileSize ()=0 |
Returns the uncompressed size of the file. More... | |
virtual CefBaseTime | GetFileLastModified ()=0 |
Returns the last modified timestamp for the file. More... | |
virtual bool | OpenFile (const CefString &password)=0 |
Opens the file for reading of uncompressed data. More... | |
virtual bool | CloseFile ()=0 |
Closes the file. More... | |
virtual int | ReadFile (void *buffer, size_t bufferSize)=0 |
Read uncompressed file contents into the specified buffer. More... | |
virtual int64 | Tell ()=0 |
Returns the current offset in the uncompressed file contents. More... | |
virtual bool | Eof ()=0 |
Returns true if at end of the file contents. More... | |
Public Member Functions inherited from CefBaseRefCounted | |
virtual void | AddRef () const =0 |
Called to increment the reference count for the object. More... | |
virtual bool | Release () const =0 |
Called to decrement the reference count for the object. More... | |
virtual bool | HasOneRef () const =0 |
Returns true if the reference count is 1. More... | |
virtual bool | HasAtLeastOneRef () const =0 |
Returns true if the reference count is at least 1. More... | |
Static Public Member Functions | |
static CefRefPtr< CefZipReader > | Create (CefRefPtr< CefStreamReader > stream) |
Create a new CefZipReader object. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from CefBaseRefCounted | |
virtual | ~CefBaseRefCounted () |
Class that supports the reading of zip archives via the zlib unzip API.
The methods of this class should only be called on the thread that creates the object.
|
pure virtual |
Closes the archive.
This should be called directly to ensure that cleanup occurs on the correct thread.
|
pure virtual |
Closes the file.
|
static |
Create a new CefZipReader object.
The returned object's methods can only be called from the thread that created the object.
|
pure virtual |
Returns true if at end of the file contents.
|
pure virtual |
Returns the last modified timestamp for the file.
|
pure virtual |
The below methods act on the file at the current cursor position.
Returns the name of the file.
|
pure virtual |
Returns the uncompressed size of the file.
|
pure virtual |
Moves the cursor to the specified file in the archive.
If |caseSensitive| is true then the search will be case sensitive. Returns true if the cursor position was set successfully.
|
pure virtual |
Moves the cursor to the first file in the archive.
Returns true if the cursor position was set successfully.
|
pure virtual |
Moves the cursor to the next file in the archive.
Returns true if the cursor position was set successfully.
|
pure virtual |
Opens the file for reading of uncompressed data.
A read password may optionally be specified.
|
pure virtual |
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.
|
pure virtual |
Returns the current offset in the uncompressed file contents.