public override void Flush() { FlushBuffer(buffer, bufferPosition); bufferStart += bufferPosition; bufferPosition = 0; }