|
CEF3 C++ API Docs - Version 80.1.4+g8927396+chromium-80.0.3987.149 | ||||||
FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
base::RefCountedThreadSafe
|
+--CefZipArchive
in cef_zip_archive.hThread-safe class for accessing zip archive file contents. This class should not be used with large archive files because all data will be resident in memory at the same time. This implementation supports a restricted set of zip archive features: (1) All file names are stored and compared in lower case. (2) File ordering from the original zip archive is not maintained. This means that files from the same folder may not be located together in the file content map.
Inner Classes, Typedefs, and Enums | |
class |
CefZipArchive::File
Class representing a file in the archive. |
typedef |
CefZipArchive::FileMap
|
Constructor Summary | |
|
CefZipArchive()
Create a new object. |
private |
~CefZipArchive()
|
Method Summary | |
void |
Clear()
Clears the contents of this object. |
CefRefPtr< CefZipArchive::File > |
GetFile( const CefString& fileName ) const
Returns the specified file. |
size_t |
GetFileCount() const
Returns the number of files in the archive. |
size_t |
GetFiles( CefZipArchive::FileMap& map ) const
Returns the map of all files. |
bool |
HasFile( const CefString& fileName ) const
Returns true if the specified file exists and has contents. |
size_t |
Load( CefRefPtr< CefStreamReader > stream, const CefString& password, bool overwriteExisting )
Load the contents of the specified zip archive stream into this object. |
bool |
RemoveFile( const CefString& fileName )
Removes the specified file. |
Constructor Detail |
public CefZipArchive();
private ~CefZipArchive();
Method Detail |
public void Clear();
public CefRefPtr< CefZipArchive::File > GetFile( const CefString& fileName ) const;
public size_t GetFileCount() const;
public size_t GetFiles( CefZipArchive::FileMap& map ) const;
public bool HasFile( const CefString& fileName ) const;
public size_t Load( CefRefPtr< CefStreamReader > stream, const CefString& password, bool overwriteExisting );
public bool RemoveFile( const CefString& fileName );
|
CEF3 C++ API Docs - Version 80.1.4+g8927396+chromium-80.0.3987.149 | ||||||
FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |