MCPcopy Create free account
hub / github.com/BehaviorTree/BehaviorTree.CPP / Write

Method Write

3rdparty/tinyxml2/tinyxml2.cpp:2630–2640  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2628
2629
2630void XMLPrinter::Write( const char* data, size_t size )
2631{
2632 if ( _fp ) {
2633 fwrite ( data , sizeof(char), size, _fp);
2634 }
2635 else {
2636 char* p = _buffer.PushArr( static_cast<int>(size) ) - 1; // back up over the null terminator.
2637 memcpy( p, data, size );
2638 p[size] = 0;
2639 }
2640}
2641
2642
2643void XMLPrinter::Putc( char ch )

Callers

nothing calls this directly

Calls 1

PushArrMethod · 0.80

Tested by

no test coverage detected