D%29配置std::basic_streambuf指针如下:pbeg为空指针,调用setg(gnext,gnext,gnext+N).如果pbeg不是空指针,则执行setg(gnext,gnext,pbeg