From e01e786883c0a5aa7acac1d963ef7c14c222e30a Mon Sep 17 00:00:00 2001 From: sniperbat Date: Mon, 21 May 2012 12:45:36 +0800 Subject: [PATCH] add a method to help get the size of the XML file in memory --- tinyxml2.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tinyxml2.h b/tinyxml2.h index 352b591..35b61af 100644 --- a/tinyxml2.h +++ b/tinyxml2.h @@ -1371,6 +1371,10 @@ public: the XML file in memory. */ const char* CStr() const { return buffer.Mem(); } + /** + Return the size of the XML file in memory + */ + const int SizeOfCStr()const{ return buffer.Size(); } private: void SealElement();