Expose more buffer interface

Exposing more of the buffer interface, for C modules that might want to use it.