update internal/buffer: add get_fit_buffer_type() get_fit_buffer()