Back to index

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

Go to the source code of this file.

Defines

#define MIN_BUFFER_SIZE   32

Functions

NS_COM nsresult NS_NewUnicharBuffer (nsIUnicharBuffer **aInstancePtrResult, nsISupports *aOuter, PRUint32 aBufferSize)
 Factory method for nsIUnicharBuffer.

Define Documentation

Definition at line 42 of file nsUnicharBuffer.cpp.


Function Documentation

NS_COM nsresult NS_NewUnicharBuffer ( nsIUnicharBuffer **  aInstancePtrResult,
nsISupports *  aOuter,
PRUint32  aBufferSize 
)

Factory method for nsIUnicharBuffer.

Definition at line 125 of file nsUnicharBuffer.cpp.

{
  nsresult rv;
  nsIUnicharBuffer* buf;
  rv = UnicharBufferImpl::Create(aOuter, NS_GET_IID(nsIUnicharBuffer), 
                                 (void**)&buf);
  if (NS_FAILED(rv)) return rv;
  rv = buf->Init(aBufferSize);
  if (NS_FAILED(rv)) {
    NS_RELEASE(buf);
    return rv;
  }
  *aInstancePtrResult = buf;
  return rv;
}

Here is the call graph for this function:

Here is the caller graph for this function: