MCPcopy Create free account
hub / github.com/Overload-Technologies/Overload / Write

Method Write

Dependencies/tinyxml2/src/tinyxml2.cpp:2457–2467  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2455
2456
2457void XMLPrinter::Write( const char* data, size_t size )
2458{
2459 if ( _fp ) {
2460 fwrite ( data , sizeof(char), size, _fp);
2461 }
2462 else {
2463 char* p = _buffer.PushArr( static_cast<int>(size) ) - 1; // back up over the null terminator.
2464 memcpy( p, data, size );
2465 p[size] = 0;
2466 }
2467}
2468
2469
2470void XMLPrinter::Putc( char ch )

Callers

nothing calls this directly

Calls 1

PushArrMethod · 0.80

Tested by

no test coverage detected