def _cut_frames(self):
        d = self._s.data
        l = len(d)
        pos = l - self._buffer_frames
        if pos > 0:
            self._s.data_offset, d[:pos] = self._s.data_offset + pos, []
            self._grpos_first = d[0][0]
dataset/ETHPy150Open arkadini/twimp/twimp/server/inmemory.py/IMLiveStream._cut_frames/original