MCPcopy Create free account
hub / github.com/Query-farm/airport / writeToTempFile

Function writeToTempFile

src/storage/airport_catalog_api.cpp:29–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers 1

decompressZStandardFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected