Exported some functions from buffer that are used elsewhere.