MCPcopy Create free account
hub / github.com/crossuo/crossuo / Write

Method Write

external/tinyxml2.cpp:2577–2587  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2575
2576
2577void XMLPrinter::Write( const char* data, size_t size )
2578{
2579 if ( _fp ) {
2580 fwrite ( data , sizeof(char), size, _fp);
2581 }
2582 else {
2583 char* p = _buffer.PushArr( static_cast<int>(size) ) - 1; // back up over the null terminator.
2584 memcpy( p, data, size );
2585 p[size] = 0;
2586 }
2587}
2588
2589
2590void XMLPrinter::Putc( char ch )

Callers 1

SDL_FS_PlayDeviceFunction · 0.80

Calls 2

memcpyFunction · 0.85
PushArrMethod · 0.80

Tested by

no test coverage detected