Searched refs:FileCloser (Results 1 – 5 of 5) sorted by relevance
42 class FileCloser { class44 explicit FileCloser(int fd) : fd_(fd) {} in FileCloser() function in libtextclassifier::nlp_core::__anon1b9dcc970111::FileCloser45 ~FileCloser() { in ~FileCloser()55 TC_DISALLOW_COPY_AND_ASSIGN(FileCloser);71 FileCloser file_closer(fd); in MmapFile()
24 struct FileCloser { struct30 using ScopedFILE = std::unique_ptr<FILE, FileCloser>; argument
78 struct FileCloser { struct84 using ScopedFILE = std::unique_ptr<FILE, FileCloser>; argument
242 struct FileCloser { struct243 explicit FileCloser(fd_t fd) : fd(fd) {} in FileCloser() function244 ~FileCloser() { CloseFile(fd); } in ~FileCloser() argument
417 FileCloser closer(fd); in GetPreferredBase()