Replaced some ser_buffer_t passing with buf_ptr passing.