MCPcopy Create free account
hub / github.com/avast/retdec / Write

Method Write

deps/tinyxml2/tinyxml2.cpp:2530–2540  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2528
2529
2530void XMLPrinter::Write( const char* data, size_t size )
2531{
2532 if ( _fp ) {
2533 fwrite ( data , sizeof(char), size, _fp);
2534 }
2535 else {
2536 char* p = _buffer.PushArr( static_cast<int>(size) ) - 1; // back up over the null terminator.
2537 memcpy( p, data, size );
2538 p[size] = 0;
2539 }
2540}
2541
2542
2543void XMLPrinter::Putc( char ch )

Callers

nothing calls this directly

Calls 1

PushArrMethod · 0.80

Tested by

no test coverage detected