Sfoglia il codice sorgente

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

sniperbat 13 anni fa
parent
commit
e01e786883
1 ha cambiato i file con 4 aggiunte e 0 eliminazioni
  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();