Use the buffer allocator where appropriate.