def _parse_buffer(self, buffer):
        while True:
            type = TAG_Byte(buffer=buffer)
            if type.value == TAG_END:
                #print("found tag_end")
                break
            else:
                name = TAG_String(buffer=buffer).value
                try:
                    tag = TAGLIST[type.value](buffer=buffer)
                    tag.name = name
                    self.tags.append(tag)
                except __HOLE__:
                    raise ValueError("Unrecognised tag type")
dataset/ETHPy150Open benbaptist/minecraft-wrapper/src/nbt.py/TAG_Compound._parse_buffer