MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / Write

Method Write

Engine/lib/tinyxml/tinyxml2.cpp:2597–2607  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2595
2596
2597void XMLPrinter::Write( const char* data, size_t size )
2598{
2599 if ( _fp ) {
2600 fwrite ( data , sizeof(char), size, _fp);
2601 }
2602 else {
2603 char* p = _buffer.PushArr( static_cast<int>(size) ) - 1; // back up over the null terminator.
2604 memcpy( p, data, size );
2605 p[size] = 0;
2606 }
2607}
2608
2609
2610void XMLPrinter::Putc( char ch )

Callers 1

SDL_FS_PlayDeviceFunction · 0.45

Calls 2

memcpyFunction · 0.85
PushArrMethod · 0.80

Tested by

no test coverage detected