Logo Search packages:      
Sourcecode: virtualbox-ose version File versions

nsStringHeader Class Reference

List of all members.

Detailed Description

This structure precedes the string buffers "we" allocate. It may be the case that nsTSubstring::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 119 of file nsSubstring.cpp.

Public Member Functions

void AddRef ()
void * Data () const
PRBool IsReadonly () const
void Release ()
PRUint32 StorageSize () const

Static Public Member Functions

static nsStringHeaderAlloc (size_t size)
static nsStringHeaderFromData (void *data)
static nsStringHeaderRealloc (nsStringHeader *hdr, size_t size)

Private Attributes

PRInt32 mRefCount
PRUint32 mStorageSize

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

Generated by  Doxygen 1.6.0   Back to index