23 std::ofstream out( file.generic_string().c_str() );
25 memset( buffer, 0,
sizeof(buffer) );
27 size_t bytes_left =
s;
28 while( bytes_left > 0 )
30 size_t to_write = std::min<size_t>(bytes_left,
sizeof(buffer) );
31 out.write( buffer, to_write );
32 bytes_left -= to_write;
36 std::string filePath = file.to_native_ansi_path();
void open(const fc::path &file, size_t s, bool create)
std::unique_ptr< fc::mapped_region > _mapped_region
std::unique_ptr< fc::file_mapping > _file_mapping
wraps boost::filesystem::path to provide platform independent path manipulation.
bool exists(const path &p)
uint64_t file_size(const path &p)
memset(pInfo->slotDescription, ' ', 64)