This is more efficient than insert()ing the read buffer to a vector. It also uses vector.swap() heavily to avoid extra memory copies.
Public Member Functions | |
void | giveChunk (std::vector< char > &chunk) |
void | flushToBuffer (Buffer &setme) |
void code::BufferAccumulator::flushToBuffer | ( | Buffer & | setme | ) |
void code::BufferAccumulator::giveChunk | ( | std::vector< char > & | chunk | ) |