[dtstream] switch dtstream to c++