commit | e01e786883c0a5aa7acac1d963ef7c14c222e30a | [log] [tgz] |
---|---|---|
author | sniperbat <sniperbat@gmail.com> | Mon May 21 12:45:36 2012 +0800 |
committer | sniperbat <sniperbat@gmail.com> | Mon May 21 12:45:36 2012 +0800 |
tree | 86d3aef34b6893a823499207d0c2c6001882fbae | |
parent | a2ae54e40dcd060e520db46b45ec8fb1665e6567 [diff] [blame] |
add a method to help get the size of the XML file in memory
diff --git a/tinyxml2.h b/tinyxml2.h index 352b591..35b61af 100644 --- a/tinyxml2.h +++ b/tinyxml2.h
@@ -1371,6 +1371,10 @@ 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();