Home
last modified time | relevance | path

Searched refs:truncated (Results 1 - 6 of 6) sorted by relevance

/foundation/distributeddatamgr/relational_store/rdbmock/frameworks/native/rdb/
H A Dfile_ex.h22 static bool SaveBufferToFile(const std::string& filePath, const std::vector<char>& content, bool truncated = true) in SaveBufferToFile()
/foundation/ai/intelligent_voice_framework/llt/hdt/depend_libs/src/
H A Dfile_ex.cpp128 bool SaveStringToFile(const std::string& filePath, const std::string& content, bool truncated /* = true */) in SaveStringToFile()
136 if (truncated) { in SaveStringToFile()
253 bool SaveBufferToFile(const string& filePath, const vector<char>& content, bool truncated /* = true */) in SaveBufferToFile()
261 ios_base::openmode mode = truncated ? (ios::out | ios::binary | ios::trunc) : (ios::out | ios::binary | ios::app); in SaveBufferToFile()
/foundation/resourceschedule/memmgr/services/memmgrservice/src/reclaim_strategy_manager/
H A Dmemcg.cpp249 inline bool Memcg::WriteToFile_(const std::string& path, const std::string& content, bool truncated) in WriteToFile_() argument
251 std::string op = truncated ? ">" : ">>"; in WriteToFile_()
252 if (!KernelInterface::GetInstance().WriteToFile(path, content, truncated)) { in WriteToFile_()
/foundation/resourceschedule/memmgr/common/src/
H A Dkernel_interface.cpp116 bool KernelInterface::WriteToFile(const std::string& path, const std::string& content, bool truncated) in WriteToFile() argument
132 fd = open(actualPath, O_RDWR | (truncated ? O_TRUNC : O_APPEND)); in WriteToFile()
135 content.c_str(), truncated ? ">" : ">>", path.c_str()); in WriteToFile()
141 content.c_str(), truncated ? ">" : ">>", path.c_str()); in WriteToFile()
148 HILOGD("echo %{public}s %{public}s %{public}s", content.c_str(), truncated ? ">" : ">>", path.c_str()); in WriteToFile()
/foundation/resourceschedule/memmgr/services/memmgrservice/include/reclaim_strategy_manager/
H A Dmemcg.h102 bool WriteToFile_(const std::string& path, const std::string& content, bool truncated = true);
/foundation/resourceschedule/memmgr/common/include/
H A Dkernel_interface.h53 bool WriteToFile(const std::string& path, const std::string& content, bool truncated = true);

Completed in 4 milliseconds