Back to index

lightning-sunbird  0.9+nobinonly
Classes | Functions
nsIInputStreamTee.idl File Reference
import "nsIInputStream.idl";

Go to the source code of this file.


interface  nsIInputStreamTee
 A nsIInputStreamTee is a wrapper for an input stream, that when read reads the specified amount of data from its |source| and copies that data to its |sink|. More...


NS_COM nsresult NS_NewInputStreamTee (nsIInputStream **tee, nsIInputStream *source, nsIOutputStream *sink)

Function Documentation

Definition at line 205 of file nsInputStreamTee.cpp.

    nsresult rv;
    nsCOMPtr<nsIInputStreamTee> tee;
    NS_NEWXPCOM(tee, nsInputStreamTee);
    if (!tee)
        return NS_ERROR_OUT_OF_MEMORY;

    rv = tee->SetSource(source);
    if (NS_FAILED(rv)) return rv;

    rv = tee->SetSink(sink);
    if (NS_FAILED(rv)) return rv;

    NS_ADDREF(*result = tee);
    return rv;

Here is the call graph for this function:

Here is the caller graph for this function: