def flush(self):
        """
        Serialized all currenct content of the buffer into binary

        Returns:
            binary data of (exp_list, ob_storage)
        """
        binary = U.serialize((self.exp_list, self.ob_storage))
        self.exp_list = []
        self.ob_storage = {}
        return binary

        Serialized all currenct content of the buffer into binary

        Returns:
            binary data of (exp_list, ob_storage)
        
surreal/distributed/exp_sender.py