cs_vector_clear pb corrected -> cs_buffer_set_size pb