tar in bytes format

def tar(self):
        """tar in bytes format"""
        if not self.generated:
            for data in self.generate():
                pass
        return self._tar_buffer.getvalue()