| 215 | } |
| 216 | |
| 217 | std::vector<u8> Explorer::ReadFile(const std::string &path) { |
| 218 | const auto full_path = this->MakeFull(path); |
| 219 | const auto file_size = this->GetFileSize(full_path); |
| 220 | |
| 221 | std::vector<u8> data; |
| 222 | if(file_size > 0) { |
| 223 | data.reserve(file_size); |
| 224 | this->ReadFile(full_path, 0, file_size, data.data()); |
| 225 | } |
| 226 | return data; |
| 227 | } |
| 228 | |
| 229 | std::vector<std::string> Explorer::ReadFileLines(const std::string &path, const u32 line_offset, const u32 line_count) { |
| 230 | std::vector<std::string> data; |
no test coverage detected