Back to index

lightning-sunbird  0.9+nobinonly
Defines | Functions
nsBufferedStreams.cpp File Reference
#include "nsBufferedStreams.h"
#include "nsCRT.h"

Go to the source code of this file.


#define METER(x)   /* nothing */


 NS_IMPL_ISUPPORTS_INHERITED3 (nsBufferedInputStream, nsBufferedStream, nsIInputStream, nsIBufferedInputStream, nsIStreamBufferAccess) NS_METHOD nsBufferedInputStream
static NS_METHOD nsReadFromInputStream (nsIOutputStream *outStr, void *closure, char *toRawSegment, PRUint32 offset, PRUint32 count, PRUint32 *readCount)

Define Documentation

#define METER (   x)    /* nothing */

Definition at line 63 of file nsBufferedStreams.cpp.

Function Documentation

Definition at line 248 of file nsBufferedStreams.cpp.


    nsBufferedInputStream* stream = new nsBufferedInputStream();
    if (stream == nsnull)
        return NS_ERROR_OUT_OF_MEMORY;
    nsresult rv = stream->QueryInterface(aIID, aResult);
    return rv;

Here is the call graph for this function:

static NS_METHOD nsReadFromInputStream ( nsIOutputStream outStr,
void closure,
char *  toRawSegment,
PRUint32  offset,
PRUint32  count,
PRUint32 readCount 
) [static]

Definition at line 608 of file nsBufferedStreams.cpp.

    nsIInputStream* fromStream = (nsIInputStream*)closure;
    return fromStream->Read(toRawSegment, count, readCount);