version 1.14, 2008/12/16 18:55:59
|
version 1.14.2.1, 2013/01/08 13:36:16
|
|
|
*/ | */ |
const char* getData() const; | const char* getData() const; |
| |
|
/** |
|
Returns a pointer to the character buffer with the Buffer contents. |
|
This function does NOT append a null character. |
|
Resulting data should NOT be used with C string processing functions. |
|
*/ |
|
char* getContentPtr(); |
|
|
char get(Uint32 i) const; | char get(Uint32 i) const; |
| |
void set(Uint32 i, char x); | void set(Uint32 i, char x); |
|
|
return _rep->data; | return _rep->data; |
} | } |
| |
|
inline char* Buffer::getContentPtr() |
|
{ |
|
return _rep->data; |
|
} |
|
|
inline char Buffer::get(Uint32 i) const | inline char Buffer::get(Uint32 i) const |
{ | { |
return _rep->data[i]; | return _rep->data[i]; |