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]
pub fn coerce<T: nsIUnicharOutputStreamCoerce>(&self) -> &T
[src]
Cast this nsIUnicharOutputStream
to one of its base interfaces.
impl nsIUnicharOutputStream
[src]
pub unsafe fn Write(
&self,
aCount: uint32_t,
c: *const char16_t,
_retval: *mut bool
) -> nsresult
[src]
&self,
aCount: uint32_t,
c: *const char16_t,
_retval: *mut bool
) -> nsresult
/**
* 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);
pub unsafe fn WriteString(
&self,
str: &nsAString,
_retval: *mut bool
) -> nsresult
[src]
&self,
str: &nsAString,
_retval: *mut bool
) -> nsresult
/**
* 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);
pub unsafe fn Flush(&self) -> nsresult
[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 ();
pub unsafe fn Close(&self) -> nsresult
[src]
/**
* Close the stream and free associated resources. This also closes the
* underlying stream.
*/
void close ();
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 nsIUnicharOutputStream
[src]
const IID: nsIID
IID: nsIID = nsID(755020219, 35617, 19043, [188, 198, 114, 19, 245, 19, 172, 46])
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 nsIUnicharOutputStream
[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 nsIUnicharOutputStream
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.