Browse Source

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

sniperbat 13 năm trước cách đây
mục cha
commit
e01e786883
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  1. 4 0
      tinyxml2.h

+ 4 - 0
tinyxml2.h

@@ -1371,6 +1371,10 @@ public:
 		the XML file in memory.
 		the XML file in memory.
 	*/
 	*/
 	const char* CStr() const { return buffer.Mem(); }
 	const char* CStr() const { return buffer.Mem(); }
+	/**
+   		Return the size of the XML file in memory
+  	*/
+  	const int SizeOfCStr()const{ return buffer.Size(); }
 
 
 private:
 private:
 	void SealElement();
 	void SealElement();