Logo Search packages:      
Sourcecode: xulrunner version File versions

nsStringBuffer Class Reference

#include <nsStringBuffer.h>

List of all members.


Detailed Description

This structure precedes the string buffers "we" allocate. It may be the case that nsTAString::mData does not point to one of these special buffers. The mFlags member variable distinguishes the buffer type.

When this header is in use, it enables reference counting, and capacity tracking. NOTE: A string buffer can be modified only if its reference count is 1.

Definition at line 51 of file nsStringBuffer.h.


Public Member Functions

NS_COM void NS_FASTCALL AddRef ()
void * Data () const
PRBool IsReadonly () const
NS_COM void NS_FASTCALL Release ()
PRUint32 StorageSize () const
NS_COM void ToString (PRUint32 len, nsACString &str)
NS_COM void ToString (PRUint32 len, nsAString &str)

Static Public Member Functions

static NS_COM nsStringBufferAlloc (size_t storageSize)
static nsStringBufferFromData (void *data)
static NS_COM nsStringBufferFromString (const nsACString &str)
static NS_COM nsStringBufferFromString (const nsAString &str)
static NS_COM nsStringBufferRealloc (nsStringBuffer *buf, size_t storageSize)

Private Attributes

PRInt32 mRefCount
PRUint32 mStorageSize

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index