增加重置数据缓冲区的函数

Signed-off-by: hurley25 <liuhuan1992@gmail.com>