+ if ((unsigned int)result == outbuffer[0].length())
+ {
+ /* The whole block was written (usually a line)
+ * Pop the block off the front of the queue
+ */
+ outbuffer.pop_front();
+ }
+ else
+ {
+ outbuffer[0] = outbuffer[0].substr(result + 1,outbuffer[0].length());
+ }