Back to index

lightning-sunbird  0.9+nobinonly
Classes | Defines | Functions
nsIUnicharBuffer.h File Reference
#include "nscore.h"
#include "nsISupports.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  nsIUnicharBuffer
 Interface to a buffer that holds unicode characters. More...

Defines

#define NS_IUNICHARBUFFER_IID
#define NS_UNICHARBUFFER_CID

Functions

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

Define Documentation

Value:
{ 0x14cf6970, 0x93b5, 0x11d1, \
  {0x89, 0x5b, 0x00, 0x60, 0x08, 0x91, 0x1b, 0x81} }

Definition at line 43 of file nsIUnicharBuffer.h.

Value:
{ /* c81fd8f0-0d6b-11d3-9331-00104ba0fd40 */         \
    0xc81fd8f0,                                      \
    0x0d6b,                                          \
    0x11d3,                                          \
    {0x93, 0x31, 0x00, 0x10, 0x4b, 0xa0, 0xfd, 0x40} \
}

Definition at line 65 of file nsIUnicharBuffer.h.


Function Documentation

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

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: