@defer.inlineCallbacks
    def __flush_buffer(self):
        yield self.__flush_data(self._buffer.getvalue())
        self._buffer.close()
        self._buffer = StringIO()
Flush the buffer contents out to a chunk.
dataset/ETHPy150Open twisted/txmongo/txmongo/_gridfs/grid_file.py/GridIn.__flush_buffer