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

Function FileRead

Common/files.cpp:6–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4{
5
6void FileRead( std::FILE* const file, void* buffer, const unsigned int size )
7{
8 unsigned int read_total= 0u;
9
10 do
11 {
12 const int read= std::fread( static_cast<char*>(buffer) + read_total, 1, size - read_total, file );
13 if( read <= 0 )
14 break;
15
16 read_total+= read;
17 } while( read_total < size );
18}
19
20void FileWrite( std::FILE* const file, const void* buffer, const unsigned int size )
21{

Callers 12

mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
SettingsMethod · 0.85
LoadDataFunction · 0.85
LoadSaveCommentFunction · 0.85
VfsMethod · 0.85
ReadFileMethod · 0.85
mainFunction · 0.85
LoadPaletteFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected