[dtutils] switch dt_buffer to c++