Back to index

lightning-sunbird  0.9+nobinonly
Classes | Functions
nsMultiplexInputStream.cpp File Reference
#include "nsMultiplexInputStream.h"
#include "nsIMultiplexInputStream.h"
#include "nsISeekableStream.h"
#include "nsSupportsArray.h"
#include "nsInt64.h"

Go to the source code of this file.

Classes

class  nsMultiplexInputStream
 The multiplex stream concatenates a list of input streams into a single stream. More...
struct  nsMultiplexInputStream::ReadSegmentsState

Functions

 NS_IMPL_THREADSAFE_ISUPPORTS3 (nsMultiplexInputStream, nsIMultiplexInputStream, nsIInputStream, nsISeekableStream) nsMultiplexInputStream
NS_METHOD nsMultiplexInputStreamConstructor (nsISupports *outer, REFNSIID iid, void **result)

Class Documentation

struct nsMultiplexInputStream::ReadSegmentsState

Definition at line 67 of file nsMultiplexInputStream.cpp.

Collaboration diagram for nsMultiplexInputStream::ReadSegmentsState:
Class Members
void * mClosure
PRBool mDone
PRUint32 mOffset
nsIInputStream * mThisStream
nsWriteSegmentFun mWriter

Function Documentation

Definition at line 85 of file nsMultiplexInputStream.cpp.

    : mCurrentStream(0),
      mStartedReadingCurrent(PR_FALSE)
{
}
NS_METHOD nsMultiplexInputStreamConstructor ( nsISupports *  outer,
REFNSIID  iid,
void **  result 
)

Definition at line 370 of file nsMultiplexInputStream.cpp.

{
    *result = nsnull;

    if (outer)
        return NS_ERROR_NO_AGGREGATION;

    nsMultiplexInputStream *inst;
    NS_NEWXPCOM(inst, nsMultiplexInputStream);
    if (!inst)
        return NS_ERROR_OUT_OF_MEMORY;

    NS_ADDREF(inst);
    nsresult rv = inst->QueryInterface(iid, result);
    NS_RELEASE(inst);

    return rv;
}

Here is the call graph for this function: