| 651 | } |
| 652 | |
| 653 | void 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 | |
| 661 | VectorPtr restoreVector(std::istream& in, memory::MemoryPool* pool) { |
| 662 | BOLT_CHECK_NOT_NULL(pool); |