Rename buffer_ routines to ws_buffer_ to avoid name collisions.