Struct xpcom::interfaces::nsIZipReaderCache
[−]
[src]
#[repr(C)]pub struct nsIZipReaderCache { /* fields omitted */ }
interface nsIZipReaderCache : nsISupports
Methods
impl nsIZipReaderCache
[src]
pub fn coerce<T: nsIZipReaderCacheCoerce>(&self) -> &T
[src]
Cast this nsIZipReaderCache
to one of its base interfaces.
impl nsIZipReaderCache
[src]
pub unsafe fn Init(&self, cacheSize: uint32_t) -> nsresult
[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);
pub unsafe fn GetZip(
&self,
zipFile: *const nsIFile,
_retval: *mut *const nsIZipReader
) -> nsresult
[src]
&self,
zipFile: *const nsIFile,
_retval: *mut *const nsIZipReader
) -> nsresult
/**
* 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);
pub unsafe fn GetZipIfCached(
&self,
zipFile: *const nsIFile,
_retval: *mut *const nsIZipReader
) -> nsresult
[src]
&self,
zipFile: *const nsIFile,
_retval: *mut *const nsIZipReader
) -> nsresult
/**
* 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);
pub unsafe fn IsCached(
&self,
zipFile: *const nsIFile,
_retval: *mut bool
) -> nsresult
[src]
&self,
zipFile: *const nsIFile,
_retval: *mut bool
) -> nsresult
/**
* returns true if this zipreader already has this file cached
*/
bool isCached (in nsIFile zipFile);
pub unsafe fn GetInnerZip(
&self,
zipFile: *const nsIFile,
zipEntry: &nsACString,
_retval: *mut *const nsIZipReader
) -> nsresult
[src]
&self,
zipFile: *const nsIFile,
zipEntry: &nsACString,
_retval: *mut *const nsIZipReader
) -> nsresult
/**
* 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>
pub fn coerce<T: nsISupportsCoerce>(&self) -> &T
[src]
Cast this nsISupports
to one of its base interfaces.
pub unsafe fn QueryInterface(
&self,
uuid: &nsIID,
result: *mut *mut c_void
) -> nsresult
[src]
&self,
uuid: &nsIID,
result: *mut *mut c_void
) -> nsresult
void QueryInterface (in nsIIDRef uuid, [iid_is (uuid), retval] out nsQIResult result);
pub unsafe fn AddRef(&self) -> nsrefcnt
[src]
[noscript,notxpcom] nsrefcnt AddRef ();
pub unsafe fn Release(&self) -> nsrefcnt
[src]
[noscript,notxpcom] nsrefcnt Release ();
Trait Implementations
impl XpCom for nsIZipReaderCache
[src]
const IID: nsIID
IID: nsIID = nsID(823629831, 40909, 18116, [190, 250, 42, 222, 32, 154, 57, 75])
fn query_interface<T: XpCom>(&self) -> Option<RefPtr<T>>
[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]
unsafe fn addref(&self)
[src]
Increment the reference count.
unsafe fn release(&self)
[src]
Decrement the reference count, potentially freeing backing memory.
impl Deref for nsIZipReaderCache
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.