Struct xpcom::interfaces::nsISeekableStream
[−]
[src]
#[repr(C)]pub struct nsISeekableStream { /* fields omitted */ }
interface nsISeekableStream : nsISupports
Methods
impl nsISeekableStream
[src]
pub fn coerce<T: nsISeekableStreamCoerce>(&self) -> &T
[src]
Cast this nsISeekableStream
to one of its base interfaces.
impl nsISeekableStream
[src]
pub const NS_SEEK_SET: i64
NS_SEEK_SET: i64 = 0
pub const NS_SEEK_CUR: i64
NS_SEEK_CUR: i64 = 1
pub const NS_SEEK_END: i64
NS_SEEK_END: i64 = 2
pub unsafe fn Seek(&self, whence: int32_t, offset: int64_t) -> nsresult
[src]
/**
* seek
*
* This method moves the stream offset of the steam implementing this
* interface.
*
* @param whence specifies how to interpret the 'offset' parameter in
* setting the stream offset associated with the implementing
* stream.
*
* @param offset specifies a value, in bytes, that is used in conjunction
* with the 'whence' parameter to set the stream offset of the
* implementing stream. A negative value causes seeking in
* the reverse direction.
*
* @throws NS_BASE_STREAM_CLOSED if called on a closed stream.
*/
void seek (in long whence, in long long offset);
pub unsafe fn Tell(&self, _retval: *mut int64_t) -> nsresult
[src]
/**
* tell
*
* This method reports the current offset, in bytes, from the start of the
* stream.
*
* @throws NS_BASE_STREAM_CLOSED if called on a closed stream.
*/
long long tell ();
pub unsafe fn SetEOF(&self) -> nsresult
[src]
/**
* setEOF
*
* This method truncates the stream at the current offset.
*
* @throws NS_BASE_STREAM_CLOSED if called on a closed stream.
*/
void setEOF ();
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 nsISeekableStream
[src]
const IID: nsIID
IID: nsIID = nsID(2217333584, 4160, 18017, [139, 113, 242, 166, 186, 69, 89, 128])
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 nsISeekableStream
[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 nsISeekableStream
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.