| 27 | namespace |
| 28 | { |
| 29 | void writeToTempFile(FileSystem &fs, const string &tempFilename, const std::string_view &data) |
| 30 | { |
| 31 | auto handle = fs.OpenFile(tempFilename, FILE_FLAGS_WRITE | FILE_FLAGS_FILE_CREATE_NEW); |
| 32 | if (!handle) |
| 33 | { |
| 34 | throw IOException("Airport: Failed to open file for writing: %s", tempFilename.c_str()); |
| 35 | } |
| 36 | |
| 37 | handle->Write((void *)data.data(), data.size()); |
| 38 | handle->Sync(); |
| 39 | handle->Close(); |
| 40 | } |
| 41 | |
| 42 | string decompressZStandard(const string &source, const int decompressed_size, const string &location) |
| 43 | { |
no outgoing calls
no test coverage detected