added pull_all method to Buffer