commit | b2e08e4bc09aef0011a16476083f951166786f98 | [log] [tgz] |
---|---|---|
author | Alexander Golubev <drom.home@gmail.com> | Mon Mar 28 19:51:59 2016 +0300 |
committer | Brad Anderson <eco@gnuk.net> | Tue Oct 24 17:31:33 2017 -0600 |
tree | 71d9d2eb130080361c1c1d0206dba71f938d80db | |
parent | 8b83b238767ca1fdaaf73b3f4a1b98c4512a54bb [diff] [blame] |
XMLPrinter optimization Stream writing to buffer will be x5 faster
diff --git a/tinyxml2.h b/tinyxml2.h index 9774118..316f2ba 100755 --- a/tinyxml2.h +++ b/tinyxml2.h
@@ -2224,6 +2224,9 @@ */ virtual void PrintSpace( int depth ); void Print( const char* format, ... ); + void Write( const char* data, size_t size ); + inline void Write( const char* data ) { Write( data, strlen( data ) ); } + void Putc( char ch ); void SealElementIfJustOpened(); bool _elementJustOpened;