MCPcopy Create free account
hub / github.com/SapphireServer/Sapphire / exportToFile

Method exportToFile

deps/datReader/File.cpp:32–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30 }
31
32 void File::exportToFile( const std::filesystem::path& i_path ) const
33 {
34 std::ofstream ofs( i_path.string(), std::ios_base::binary | std::ios_base::out );
35 for( auto& data_section : _data_sections )
36 {
37 ofs.write( data_section.data(), data_section.size() );
38 }
39 ofs.close();
40 }
41
42}

Callers 3

exportFileFunction · 0.80
exportFileFunction · 0.80
mainFunction · 0.80

Calls 3

stringMethod · 0.45
sizeMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected