Struct xpcom::interfaces::nsIUnicharInputStream [] [src]

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

interface nsIUnicharInputStream : nsISupports

Methods

impl nsIUnicharInputStream
[src]

[src]

Cast this nsIUnicharInputStream to one of its base interfaces.

impl nsIUnicharInputStream
[src]

[src]

/**
 * Abstract unicode character input stream
 * @see nsIInputStream
 */
/**
   * Reads into a caller-provided character array.
   *
   * @return The number of characters that were successfully read. May be less
   *         than aCount, even if there is more data in the input stream.
   *         A return value of 0 means EOF.
   *
   * @note To read more than 2^32 characters, call this method multiple times.
   */

[noscript] unsigned long read ([array, size_is (aCount)] in char16_t aBuf, in unsigned long aCount);

[src]

/**
   * Read into a string object.
   * @param aCount The number of characters that should be read
   * @return The number of characters that were read.
   */

unsigned long readString (in unsigned long aCount, out AString aString);

[src]

/**
  * Close the stream and free associated resources. This also closes the
  * underlying stream, if any.
  */

void close ();

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

IID: nsIID = nsID(3588472192, 26403, 19346, [176, 201, 34, 246, 22, 47, 217, 79])

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

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIUnicharInputStream
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.