MCPcopy Create free account
hub / github.com/bytedance/bolt / saveStringToFile

Function saveStringToFile

bolt/vector/VectorSaver.cpp:653–659  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

651}
652
653void saveStringToFile(
654 const std::string& content,
655 const char* FOLLY_NONNULL filePath) {
656 std::ofstream outputFile(filePath, std::ofstream::binary);
657 outputFile.write(content.data(), content.size());
658 outputFile.close();
659}
660
661VectorPtr restoreVector(std::istream& in, memory::MemoryPool* pool) {
662 BOLT_CHECK_NOT_NULL(pool);

Callers 5

persistReproInfoFunction · 0.85
persistDataAndSqlMethod · 0.85
printInputAndExprsFunction · 0.85
TEST_FFunction · 0.85
persistReproInfoMethod · 0.85

Calls 4

writeMethod · 0.45
dataMethod · 0.45
sizeMethod · 0.45
closeMethod · 0.45

Tested by 2

TEST_FFunction · 0.68
persistReproInfoMethod · 0.68