修改重置数据缓冲区的函数的错误，增加resize函数

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