Clean up 'struct buffer' methods