Add more Buffer function interfaces.
Merge branch 'buffer'