def METHOD_NAME(self):
    assert self.current_buffer_index == INVALID_BUFFER_INDEX
    assert len(self.all_buffers) > 0
    assert len(self.free_buffer_index) > 0
    self.current_buffer_index = self.free_buffer_index[-1]
    self.free_buffer_index = self.free_buffer_index[:-1]