Struct xpcom::interfaces::nsISeekableStream [] [src]

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

interface nsISeekableStream : nsISupports

Methods

impl nsISeekableStream
[src]

[src]

Cast this nsISeekableStream to one of its base interfaces.

impl nsISeekableStream
[src]

NS_SEEK_SET: i64 = 0

NS_SEEK_CUR: i64 = 1

NS_SEEK_END: i64 = 2

[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);

[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 ();

[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>

[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 nsISeekableStream
[src]

IID: nsIID = nsID(2217333584, 4160, 18017, [139, 113, 242, 166, 186, 69, 89, 128])

[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]

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsISeekableStream
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.