Struct xpcom::interfaces::nsIZipEntry
[−]
[src]
#[repr(C)]pub struct nsIZipEntry { /* fields omitted */ }
interface nsIZipEntry : nsISupports
Methods
impl nsIZipEntry
[src]
pub fn coerce<T: nsIZipEntryCoerce>(&self) -> &T
[src]
Cast this nsIZipEntry
to one of its base interfaces.
impl nsIZipEntry
[src]
pub unsafe fn GetCompression(&self, aCompression: *mut uint16_t) -> nsresult
[src]
/**
* The type of compression used for the item. The possible values and
* their meanings are defined in the zip file specification at
* http://www.pkware.com/business_and_developers/developer/appnote/
*/
readonly attribute unsigned short compression;
pub unsafe fn GetSize(&self, aSize: *mut uint32_t) -> nsresult
[src]
/**
* The compressed size of the data in the item.
*/
readonly attribute unsigned long size;
pub unsafe fn GetRealSize(&self, aRealSize: *mut uint32_t) -> nsresult
[src]
/**
* The uncompressed size of the data in the item.
*/
readonly attribute unsigned long realSize;
pub unsafe fn GetCRC32(&self, aCRC32: *mut uint32_t) -> nsresult
[src]
/**
* The CRC-32 hash of the file in the entry.
*/
readonly attribute unsigned long CRC32;
pub unsafe fn GetIsDirectory(&self, aIsDirectory: *mut bool) -> nsresult
[src]
/**
* True if the name of the entry ends with '/' and false otherwise.
*/
readonly attribute boolean isDirectory;
pub unsafe fn GetLastModifiedTime(
&self,
aLastModifiedTime: *mut PRTime
) -> nsresult
[src]
&self,
aLastModifiedTime: *mut PRTime
) -> nsresult
/**
* The time at which this item was last modified.
*/
readonly attribute PRTime lastModifiedTime;
pub unsafe fn GetIsSynthetic(&self, aIsSynthetic: *mut bool) -> nsresult
[src]
/**
* Use this attribute to determine whether this item is an actual zip entry
* or is one synthesized for part of a real entry's path. A synthesized
* entry represents a directory within the zip file which has no
* corresponding entry within the zip file. For example, the entry for the
* directory foo/ in a zip containing exactly one entry for foo/bar.txt
* is synthetic. If the zip file contains an actual entry for a directory,
* this attribute will be false for the nsIZipEntry for that directory.
* It is impossible for a file to be synthetic.
*/
readonly attribute boolean isSynthetic;
pub unsafe fn GetPermissions(&self, aPermissions: *mut uint32_t) -> nsresult
[src]
/**
* The UNIX style file permissions of this item.
*/
readonly attribute unsigned long permissions;
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 nsIZipEntry
[src]
const IID: nsIID
IID: nsIID = nsID(4208391983, 5080, 20006, [145, 115, 83, 0, 122, 74, 254, 113])
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 nsIZipEntry
[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 nsIZipEntry
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.