Explorar o código

add a method to help get the size of the XML file in memory

sniperbat %!s(int64=14) %!d(string=hai) anos
pai
achega
e01e786883
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      tinyxml2.h

+ 4 - 0
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();