Click or drag to resize
CfxZipReader Class

[This is preliminary documentation and is subject to change.]

Structure that supports the reading of zip archives via the zlib unzip API. The functions of this structure should only be called on the thread that creates the object.
Inheritance Hierarchy
SystemObject
  ChromiumCfxObject
    ChromiumCfxBase
      ChromiumCfxLibraryBase
        ChromiumCfxZipReader

Namespace: Chromium
Assembly: ChromiumFX (in ChromiumFX.dll)
Syntax
public class CfxZipReader : CfxLibraryBase

The CfxZipReader type exposes the following members.

Properties
  NameDescription
Public propertyFileLastModified
Returns the last modified timestamp for the file.
Public propertyFileName
Returns the name of the file.
Public propertyFileSize
Returns the uncompressed size of the file.
Public propertyNativePtr
Provides access to the underlying native cef struct. This is a refcounted library struct derived from cef_base_t. Add a ref in order to keep it alive when this managed object go out of scope.
(Inherited from CfxLibraryBase.)
Top
Methods
  NameDescription
Public methodClose
Closes the archive. This should be called directly to ensure that cleanup occurs on the correct thread.
Public methodCloseFile
Closes the file.
Public methodStatic memberCreate
Create a new CfxZipReader object. The returned object's functions can only be called from the thread that created the object.
Public methodEof
Returns true (1) if at end of the file contents.
Public methodMoveToFile
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.
Public methodMoveToFirstFile
Moves the cursor to the first file in the archive. Returns true (1) if the cursor position was set successfully.
Public methodMoveToNextFile
Moves the cursor to the next file in the archive. Returns true (1) if the cursor position was set successfully.
Public methodOpenFile
Opens the file for reading of uncompressed data. A read password may optionally be specified.
Public methodReadFile(Byte)
Read uncompressed file contents into the specified buffer. Returns 0 if at the end of file, or the number of bytes read. Throws an exception if an error occurred.
Public methodReadFile(IntPtr, UInt64)
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.
Public methodTell
Returns the current offset in the uncompressed file contents.
Top
Remarks
See also the original CEF documentation in cef/include/capi/cef_zip_reader_capi.h.
See Also