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]

[src]

Cast this nsIScriptableBase64Encoder to one of its base interfaces.

impl nsIScriptableBase64Encoder
[src]

[src]

/**
   *  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);

[src]

AString encodeToString (in nsIInputStream stream, in unsigned long length);

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

IID: nsIID = nsID(2491009124, 53753, 17835, [183, 185, 40, 185, 7, 189, 43, 169])

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

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIScriptableBase64Encoder
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.