Back to index

lightning-sunbird  0.9+nobinonly
Classes | Functions
nsInputStreamTee.cpp File Reference
#include "nsIInputStreamTee.h"
#include "nsIInputStream.h"
#include "nsIOutputStream.h"
#include "nsCOMPtr.h"

Go to the source code of this file.


class  nsInputStreamTee


 NS_IMPL_ISUPPORTS2 (nsInputStreamTee, nsIInputStreamTee, nsIInputStream) NS_IMETHODIMP nsInputStreamTee
NS_COM nsresult NS_NewInputStreamTee (nsIInputStream **result, nsIInputStream *source, nsIOutputStream *sink)

Function Documentation

Definition at line 112 of file nsInputStreamTee.cpp.

    nsresult rv = mSource->Close();
    mSource = 0;
    mSink = 0;
    return rv;

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: