def write( self, data ):

        # Add a StringIO buffer if none exists yet.
        if not self.buffers:
            self.buffers.append(StringIO())
            self.write_pos = 0

        lastBuf = self.buffers[-1]
        lastBuf.seek(self.write_pos)
        lastBuf.write(data)

        # If we are over the limit, a new internal buffer is created.
        if lastBuf.tell() >= self.max_size:
            lastBuf = StringIO()
            self.buffers.append(lastBuf)

        self.write_pos = lastBuf.tell()
Given a filename returns the content path or None if
dataset/ETHPy150Open isislovecruft/obfsproxy/obfsproxy/transports/scramblesuit/fifobuf.py/Buffer.write--crossover with--dataset/ETHPy150Open lektor/lektor-archive/lektor/project.py/Project.content_path_from_filename