16 #define BUFFER_CHUNK 8192 41 bool isEmpty() {
return buffers.empty() || (buffers.size() == 1 && buffers.front()->offset == 0); }
45 void append(
const unsigned int);
47 void append(
const unsigned long);
49 void append(
const std::string&);
50 void quote(
const std::string&);
55 std::list<Buffer *> buffers;
void append(const char)
Append a character to a buffer.
Definition: omfbuffer.cpp:57
OMFBuffer()
Buffer class designed to hold OMF payloads that can as required but have minimal copy semantics...
Definition: omfbuffer.cpp:23
void quote(const std::string &)
Quote and append a string to a buffer.
Definition: omfbuffer.cpp:241
const char * coalesce()
Create a coalesced buffer from the buffer chain.
Definition: omfbuffer.cpp:275
void clear()
Clear all the buffers from the OMFBuffer and allow it to be reused.
Definition: omfbuffer.cpp:42
Buffer class designed to hold OMF payloads that can grow as required but have minimal copy semantics...
Definition: omfbuffer.h:24
~OMFBuffer()
OMFBuffer destructor.
Definition: omfbuffer.cpp:31