Struct xpcom::interfaces::nsIZipReaderCache [] [src]

#[repr(C)]
pub struct nsIZipReaderCache { /* fields omitted */ }

interface nsIZipReaderCache : nsISupports

Methods

impl nsIZipReaderCache
[src]

[src]

Cast this nsIZipReaderCache to one of its base interfaces.

impl nsIZipReaderCache
[src]

[src]

/**
     * Initializes a new zip reader cache.
     * @param cacheSize - the number of released entries to maintain before
     *   beginning to throw some out (note that the number of outstanding
     *   entries can be much greater than this number -- this is the count
     *   for those otherwise unused entries)
     */

void init (in unsigned long cacheSize);

[src]

/**
     * Returns a (possibly shared) nsIZipReader for an nsIFile.
     *
     * If the zip reader for given file is not in the cache, a new zip reader
     * is created, initialized, and opened (see nsIZipReader::init and
     * nsIZipReader::open). Otherwise the previously created zip reader is
     * returned.
     *
     * @note If someone called close() on the shared nsIZipReader, this method
     *       will return the closed zip reader.
     */

nsIZipReader getZip (in nsIFile zipFile);

[src]

/**
     * Like getZip(), returns a (possibly shared) nsIZipReader for an nsIFile,
     * but if a zip reader for the given file is not in the cache, returns
     * error NS_ERROR_CACHE_KEY_NOT_FOUND rather than creating a new reader.
     *
     * @note If someone called close() on the shared nsIZipReader, this method
     *       will return the closed zip reader.
     */

nsIZipReader getZipIfCached (in nsIFile zipFile);

[src]

/**
     * returns true if this zipreader already has this file cached
     */

bool isCached (in nsIFile zipFile);

[src]

/**
     * Returns a (possibly shared) nsIZipReader for a zip inside another zip
     *
     * See getZip
     */

nsIZipReader getInnerZip (in nsIFile zipFile, in AUTF8String zipEntry);

Methods from Deref<Target = nsISupports>

[src]

Cast this nsISupports to one of its base interfaces.

[src]

void QueryInterface (in nsIIDRef uuid, [iid_is (uuid), retval] out nsQIResult result);

[src]

[noscript,notxpcom] nsrefcnt AddRef ();

[src]

[noscript,notxpcom] nsrefcnt Release ();

Trait Implementations

impl XpCom for nsIZipReaderCache
[src]

IID: nsIID = nsID(823629831, 40909, 18116, [190, 250, 42, 222, 32, 154, 57, 75])

[src]

Perform a QueryInterface call on this object, attempting to dynamically cast it to the requested interface type. Returns Some(RefPtr) if the cast succeeded, and None otherwise. Read more

impl RefCounted for nsIZipReaderCache
[src]

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIZipReaderCache
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.