MCPcopy Create free account
hub / github.com/bytedance/Fastbot_Android / Write

Method Write

native/thirdpart/tinyxml2/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

nothing calls this directly

Calls 1

PushArrMethod · 0.80

Tested by

no test coverage detected