def _parse_buffer(self, buffer):
        # Note: buffer.read() may raise an IOError, for example if buffer is a corrupt gzip.GzipFile
        value = self.fmt.unpack(buffer.read(1))[0]
        if value != 0:
            raise ValueError("A Tag End must be rendered as '0', not as '%d'." % (value))
dataset/ETHPy150Open benbaptist/minecraft-wrapper/src/nbt.py/_TAG_End._parse_buffer/original