Struct xpcom::interfaces::nsIScriptableBase64Encoder
[−]
[src]
#[repr(C)]pub struct nsIScriptableBase64Encoder { /* fields omitted */ }
interface nsIScriptableBase64Encoder : nsISupports
/**
* nsIScriptableBase64Encoder efficiently encodes the contents
* of a nsIInputStream to a Base64 string. This avoids the need
* to read the entire stream into a buffer, and only then do the
* Base64 encoding.
*
* If you already have a buffer full of data, you should use
* btoa instead!
*/
Methods
impl nsIScriptableBase64Encoder
[src]
pub fn coerce<T: nsIScriptableBase64EncoderCoerce>(&self) -> &T
[src]
Cast this nsIScriptableBase64Encoder
to one of its base interfaces.
impl nsIScriptableBase64Encoder
[src]
pub unsafe fn EncodeToCString(
&self,
stream: *const nsIInputStream,
length: uint32_t,
_retval: &mut nsACString
) -> nsresult
[src]
&self,
stream: *const nsIInputStream,
length: uint32_t,
_retval: &mut nsACString
) -> nsresult
/**
* These methods take an nsIInputStream and return a narrow or wide
* string with the contents of the nsIInputStream base64 encoded.
*
* The stream passed in must support ReadSegments and must not be
* a non-blocking stream that will return NS_BASE_STREAM_WOULD_BLOCK.
* If either of these restrictions are violated we will abort.
*/
ACString encodeToCString (in nsIInputStream stream, in unsigned long length);
pub unsafe fn EncodeToString(
&self,
stream: *const nsIInputStream,
length: uint32_t,
_retval: &mut nsAString
) -> nsresult
[src]
&self,
stream: *const nsIInputStream,
length: uint32_t,
_retval: &mut nsAString
) -> nsresult
AString encodeToString (in nsIInputStream stream, in unsigned long length);
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 nsIScriptableBase64Encoder
[src]
const IID: nsIID
IID: nsIID = nsID(2491009124, 53753, 17835, [183, 185, 40, 185, 7, 189, 43, 169])
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 nsIScriptableBase64Encoder
[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 nsIScriptableBase64Encoder
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.