Struct xpcom::interfaces::nsIUnicharOutputStream [] [src]

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

interface nsIUnicharOutputStream : nsISupports

/**
 * An interface that allows writing unicode data.
 */

Methods

impl nsIUnicharOutputStream
[src]

[src]

Cast this nsIUnicharOutputStream to one of its base interfaces.

impl nsIUnicharOutputStream
[src]

[src]

/**
     * Write a single character to the stream. When writing many characters,
     * prefer the string-taking write method.
     *
     * @retval true The character was written successfully
     * @retval false Not all bytes of the character could be written.
     */

boolean write (in unsigned long aCount, [array, size_is (aCount), const] in char16_t c);

[src]

/**
     * Write a string to the stream.
     *
     * @retval true The string was written successfully
     * @retval false Not all bytes of the string could be written.
     */

boolean writeString (in AString str);

[src]

/**
     * Flush the stream. This finishes the conversion and writes any bytes that
     * finish the current byte sequence.
     *
     * It does NOT flush the underlying stream.
     */

void flush ();

[src]

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

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

IID: nsIID = nsID(755020219, 35617, 19043, [188, 198, 114, 19, 245, 19, 172, 46])

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

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIUnicharOutputStream
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.