[util]rewrite dt buf impl