code::BufferAccumulator Class Reference

List of all members.

Detailed Description

Helper class for building a vector<char> when the final size isn't known in advance.

This is more efficient than insert()ing the read buffer to a vector. It also uses vector.swap() heavily to avoid extra memory copies.

Author:
Charles Kerr
Version:
Id
code_LocalReader.h,v 1.2 2009/06/02 20:17:39 lakshman Exp


Public Member Functions

void giveChunk (std::vector< char > &chunk)
void flushToBuffer (Buffer &setme)


Member Function Documentation

void code::BufferAccumulator::flushToBuffer ( Buffer setme  ) 

void code::BufferAccumulator::giveChunk ( std::vector< char > &  chunk  ) 


Generated on Fri May 4 13:40:13 2012 for WDSS-IIw2 by  doxygen 1.4.7