ofDoc > utils > ofBuffer

ofBuffer

Public Functions

ofBuffer (const char *buffer, unsigned int size)
ofBuffer (const string &text)
ofBuffer (istream &stream)
void set (const char *_buffer, unsigned int _size)
void set (const string &text)
bool set (istream &stream)
void append (const string &_buffer)
void append (const char *_buffer, unsigned int _size)
bool writeTo (ostream &stream) const
void clear ()
void allocate (long _size)
char * getData ()
const char * getData () const
char getBinaryBuffer () Use getData instead
const char getBinaryBuffer () Use getData instead
string getText () const
operator string () const
ofBuffer operator= (const string &text)
long size () const
string getNextLine () use a lines iterator instead
string getFirstLine () use a lines iterator instead
bool isLastLine () use a lines iterator instead
void resetLineReader () use a lines iterator instead
vector< char >::iterator begin ()
vector< char >::iterator end ()
vector< char >::const_iterator begin () const
vector< char >::const_iterator end () const
vector< char >::reverse_iterator rbegin ()
vector< char >::reverse_iterator rend ()
vector< char >::const_reverse_iterator rbegin () const
vector< char >::const_reverse_iterator rend () const

Public Static Functions

void setIOBufferSize (size_t ioSize)

Friends

friend ostream & operator<< (ostream &ostr, const ofBuffer &buf)
friend istream & operator>> (istream &istr, ofBuffer &buf)