Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bool store_helper(int id, const string &data, const int data_size) {
- check_settings();
- string s = &data[0];
- char* casted_string = new char[data_size];
- strcpy(casted_string, &data[0]);
- store(id, data_size);
- write_data(id, casted_string, data_size);
- delete[] casted_string;
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement