| 897 | } |
| 898 | |
| 899 | bool create_path(std::string& out, std::string dir_name, const std::string& file_name) |
| 900 | { |
| 901 | out.clear(); |
| 902 | |
| 903 | if (dir_name.size() + file_name.size() > CELL_REC_MAX_PATH_LEN) |
| 904 | { |
| 905 | return false; |
| 906 | } |
| 907 | |
| 908 | out = std::move(dir_name); |
| 909 | |
| 910 | if (!out.empty() && out.back() != '/') |
| 911 | { |
| 912 | out += '/'; |
| 913 | } |
| 914 | |
| 915 | out += file_name; |
| 916 | |
| 917 | return true; |
| 918 | } |
| 919 | |
| 920 | u32 cellRecQueryMemSize(vm::cptr<CellRecParam> pParam); // Forward declaration |
| 921 |
no test coverage detected