Back to index

lightning-sunbird  0.9+nobinonly
Functions | Variables
nsSupportsArray.cpp File Reference
#include <string.h>
#include "prbit.h"
#include "nsSupportsArray.h"
#include "nsSupportsArrayEnumerator.h"
#include "nsAString.h"
#include "nsIObjectInputStream.h"
#include "nsIObjectOutputStream.h"

Go to the source code of this file.

Functions

static PRBool CopyElement (nsISupports *aElement, void *aData)
NS_COM nsresult NS_NewISupportsArray (nsISupportsArray **aInstancePtrResult)

Variables

static const PRInt32 kGrowArrayBy = 8
static const PRInt32 kLinearThreshold = 16 * sizeof(nsISupports *)

Function Documentation

static PRBool CopyElement ( nsISupports *  aElement,
void aData 
) [static]

Definition at line 656 of file nsSupportsArray.cpp.

{
  nsresult rv;
  nsISupportsArray* newArray = (nsISupportsArray*)aData;
  rv = newArray->AppendElement(aElement);
  return NS_SUCCEEDED(rv);
}

Here is the call graph for this function:

Definition at line 677 of file nsSupportsArray.cpp.

{
  nsresult rv;
  rv = nsSupportsArray::Create(NULL, NS_GET_IID(nsISupportsArray),
                               (void**)aInstancePtrResult);
  return rv;
}

Here is the call graph for this function:


Variable Documentation

const PRInt32 kGrowArrayBy = 8 [static]

Definition at line 128 of file nsSupportsArray.cpp.

const PRInt32 kLinearThreshold = 16 * sizeof(nsISupports *) [static]

Definition at line 129 of file nsSupportsArray.cpp.