Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 tinyxml2 接口从流缓冲区读取 xml 数据。
如何知道 tinyxml2 接口成功读取的字符数。
可能这就是您正在寻找的。
根据文档部分“打印”,您可以使用TiXmlPrinter类输出到std::string内存缓冲区
TiXmlPrinter
std::string