Update the buffer with new input.
Will automatically invoke flush in order to output data once the buffer fills.