Public Member Functions | Protected Attributes

nsByteArray Class Reference

#include <nsMsgLineBuffer.h>

Inheritance diagram for nsByteArray:

List of all members.

Public Member Functions

 nsByteArray ()
virtual ~nsByteArray ()
PRUint32 GetSize ()
PRUint32 GetBufferPos ()
nsresult GrowBuffer (PRUint32 desired_size, PRUint32 quantum=1024)
nsresult AppendString (const char *string)
nsresult AppendBuffer (const char *buffer, PRUint32 length)
void ResetWritePos ()
char * GetBuffer ()

Protected Attributes

char * m_buffer
PRUint32 m_bufferSize
PRUint32 m_bufferPos

Constructor & Destructor Documentation

nsByteArray::nsByteArray (  ) 
virtual nsByteArray::~nsByteArray (  )  [virtual]

Member Function Documentation

nsresult nsByteArray::AppendBuffer ( const char *  buffer,
PRUint32  length 
)
nsresult nsByteArray::AppendString ( const char *  string  ) 
char* nsByteArray::GetBuffer (  )  [inline]
PRUint32 nsByteArray::GetBufferPos (  )  [inline]

Reimplemented in nsMsgLineBuffer.

PRUint32 nsByteArray::GetSize (  )  [inline]
nsresult nsByteArray::GrowBuffer ( PRUint32  desired_size,
PRUint32  quantum = 1024 
)
void nsByteArray::ResetWritePos (  )  [inline]

Member Data Documentation

char* nsByteArray::m_buffer [protected]
PRUint32 nsByteArray::m_bufferPos [protected]
PRUint32 nsByteArray::m_bufferSize [protected]

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