Struct xpcom::interfaces::nsIUnicharInputStream
[−]
[src]
#[repr(C)]pub struct nsIUnicharInputStream { /* fields omitted */ }
interface nsIUnicharInputStream : nsISupports
Methods
impl nsIUnicharInputStream
[src]
pub fn coerce<T: nsIUnicharInputStreamCoerce>(&self) -> &T
[src]
Cast this nsIUnicharInputStream
to one of its base interfaces.
impl nsIUnicharInputStream
[src]
pub unsafe fn Read(
&self,
aBuf: *mut char16_t,
aCount: uint32_t,
_retval: *mut uint32_t
) -> nsresult
[src]
&self,
aBuf: *mut char16_t,
aCount: uint32_t,
_retval: *mut uint32_t
) -> nsresult
/**
* 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);
pub unsafe fn ReadString(
&self,
aCount: uint32_t,
aString: &mut nsAString,
_retval: *mut uint32_t
) -> nsresult
[src]
&self,
aCount: uint32_t,
aString: &mut nsAString,
_retval: *mut uint32_t
) -> nsresult
/**
* 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);
pub unsafe fn Close(&self) -> nsresult
[src]
/**
* Close the stream and free associated resources. This also closes the
* underlying stream, if any.
*/
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 nsIUnicharInputStream
[src]
const IID: nsIID
IID: nsIID = nsID(3588472192, 26403, 19346, [176, 201, 34, 246, 22, 47, 217, 79])
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 nsIUnicharInputStream
[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 nsIUnicharInputStream
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.