Searched refs:TruncateFile (Results 1 – 9 of 9) sorted by relevance
145 bool TruncateFile(const fml::UniqueFD& file, size_t size) { in TruncateFile() function194 if (!TruncateFile(temp_file, data.GetSize())) { in WriteAtomically()
16 if (!fml::TruncateFile(fd, contents.size())) { in WriteStringToFile()81 ASSERT_TRUE(fml::TruncateFile(fd, contents.size())); in TEST()
56 bool TruncateFile(const fml::UniqueFD& file, size_t size);
307 bool TruncateFile(const fml::UniqueFD& file, size_t size) { in TruncateFile() function350 if (!TruncateFile(temp_file, mapping.GetSize())) { in WriteAtomically()
115 Status TruncateFile(int fd) const;
279 Status Path::TruncateFile(int fd) const { in TruncateFile() function in mindspore::dataset::Path
246 bool TruncateFile(FILE* file);
206 bool TruncateFile(FILE* file) { in TruncateFile() function
150 RETURN_IF_NOT_OK(cont_.TruncateFile(fd_)); in Truncate()