MCPcopy Create free account
hub / github.com/Panzerschrek/Chasm-Reverse / FileWrite

Function FileWrite

Common/files.cpp:20–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18}
19
20void FileWrite( std::FILE* const file, const void* buffer, const unsigned int size )
21{
22 unsigned int write_total= 0u;
23
24 do
25 {
26 const int write= std::fwrite( static_cast<const char*>(buffer) + write_total, 1, size - write_total, file );
27 if( write <= 0 )
28 break;
29
30 write_total+= write;
31 } while( write_total < size );
32}
33
34
35} // namespace ChasmReverse

Callers 3

SaveDataFunction · 0.85
WriteTGAFunction · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected