Improve Buffer APIs