Add macro wrappers for buffer functions