buffer: prefix private functions with _.