code: def readBUTTONRECORDs(self, version):
          
          out = []
          while 1:
              button = self.readBUTTONRECORD(version)
              if button:
                  out.append(button)
              else:
                  break
          return out
docs: Read zero or more button records (zero-terminated)