(file) Return to Buffer.h CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / Common

Diff for /pegasus/src/Pegasus/Common/Buffer.h between version 1.4 and 1.5

version 1.4, 2006/01/30 16:16:46 version 1.5, 2006/05/19 21:22:10
Line 69 
Line 69 
  
     size_t capacity() const;     size_t capacity() const;
  
       /**
           Returns a pointer to a character buffer with the Buffer contents.
           The character buffer is null-terminated even if the Buffer contents
           do not include a null termination character.
        */
     const char* getData() const;     const char* getData() const;
  
     char get(size_t i) const;     char get(size_t i) const;
Line 137 
Line 142 
  
 inline const char* Buffer::getData() const inline const char* Buffer::getData() const
 { {
       if (_rep->size == _rep->cap)
       {
           const_cast<Buffer*>(this)->_append_char_aux();
       }
   
       _rep->data[_rep->size] = '\0';
   
     return _rep->data;     return _rep->data;
 } }
  


Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2