Back to index

lightning-sunbird  0.9+nobinonly
Classes | Defines | Functions
nsInputStreamPump.cpp File Reference
#include "nsInputStreamPump.h"
#include "nsIServiceManager.h"
#include "nsIStreamTransportService.h"
#include "nsIEventQueueService.h"
#include "nsIInterfaceRequestorUtils.h"
#include "nsISeekableStream.h"
#include "nsITransport.h"
#include "nsNetSegmentUtils.h"
#include "nsNetUtil.h"
#include "nsCOMPtr.h"
#include "prlog.h"
#include "nsInt64.h"

Go to the source code of this file.

Classes

struct  PeekData

Defines

#define LOG(args)   PR_LOG(gStreamPumpLog, PR_LOG_DEBUG, args)

Functions

static NS_DEFINE_CID (kStreamTransportServiceCID, NS_STREAMTRANSPORTSERVICE_CID)
static NS_DEFINE_CID (kEventQueueServiceCID, NS_EVENTQUEUESERVICE_CID)
static NS_METHOD CallPeekFunc (nsIInputStream *aInStream, void *aClosure, const char *aFromSegment, PRUint32 aToOffset, PRUint32 aCount, PRUint32 *aWriteCount)
 NS_IMPL_THREADSAFE_ISUPPORTS3 (nsInputStreamPump, nsIRequest, nsIInputStreamCallback, nsIInputStreamPump) NS_IMETHODIMP nsInputStreamPump

Define Documentation

#define LOG (   args)    PR_LOG(gStreamPumpLog, PR_LOG_DEBUG, args)

Definition at line 60 of file nsInputStreamPump.cpp.


Function Documentation

static NS_METHOD CallPeekFunc ( nsIInputStream aInStream,
void aClosure,
const char *  aFromSegment,
PRUint32  aToOffset,
PRUint32  aCount,
PRUint32 aWriteCount 
) [static]

Definition at line 119 of file nsInputStreamPump.cpp.

{
  NS_ASSERTION(aToOffset == 0, "Called more than once?");
  NS_ASSERTION(aCount > 0, "Called without data?");

  PeekData* data = NS_STATIC_CAST(PeekData*, aClosure);
  data->mFunc(data->mClosure,
              NS_REINTERPRET_CAST(const PRUint8*, aFromSegment), aCount);
  return NS_BINDING_ABORTED;
}
static NS_DEFINE_CID ( kStreamTransportServiceCID  ,
NS_STREAMTRANSPORTSERVICE_CID   
) [static]

Definition at line 166 of file nsInputStreamPump.cpp.

{
    result.Truncate();
    return NS_OK;
}