Back to index

lightning-sunbird  0.9+nobinonly
Classes | Defines | Functions
nsIByteBuffer.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  nsIByteBuffer
 Interface to a buffer that holds bytes. More...

Defines

#define NS_IBYTE_BUFFER_IID
#define NS_IBYTEBUFFER_IID
#define NS_BYTEBUFFER_CONTRACTID   "@mozilla.org/byte-buffer;1"
#define NS_BYTEBUFFER_CLASSNAME   "Byte Buffer"
#define NS_BYTEBUFFER_CID

Functions

NS_COM nsresult NS_NewByteBuffer (nsIByteBuffer **aInstancePtrResult, nsISupports *aOuter, PRUint32 aBufferSize=0)
 Create a new byte buffer using the given buffer size.

Define Documentation

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

Definition at line 80 of file nsIByteBuffer.h.

#define NS_BYTEBUFFER_CLASSNAME   "Byte Buffer"

Definition at line 53 of file nsIByteBuffer.h.

#define NS_BYTEBUFFER_CONTRACTID   "@mozilla.org/byte-buffer;1"

Definition at line 52 of file nsIByteBuffer.h.

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

Definition at line 46 of file nsIByteBuffer.h.

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

Definition at line 49 of file nsIByteBuffer.h.


Function Documentation

NS_COM nsresult NS_NewByteBuffer ( nsIByteBuffer **  aInstancePtrResult,
nsISupports *  aOuter,
PRUint32  aBufferSize = 0 
)

Create a new byte buffer using the given buffer size.

Definition at line 154 of file nsByteBuffer.cpp.

{
  nsresult rv;
  nsIByteBuffer* buf;
  rv = ByteBufferImpl::Create(aOuter, NS_GET_IID(nsIByteBuffer), (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: