def end_of_stream(self):
        b = self.mat_stream.read(1)
        curpos = self.mat_stream.tell()
        self.mat_stream.seek(curpos-1)
        return len(b) == 0
dataset/ETHPy150Open scipy/scipy/scipy/io/matlab/miobase.py/MatFileReader.end_of_stream/original