Searched refs:FileCloser (Results 1 – 8 of 8) sorted by relevance
37 class FileCloser { class39 explicit FileCloser(int fd) : fd_(fd) {} in FileCloser() function in libtextclassifier3::__anon58547c450111::FileCloser40 ~FileCloser() { in ~FileCloser()51 TC3_DISALLOW_COPY_AND_ASSIGN(FileCloser);68 FileCloser file_closer(fd); in MmapFile()
153 class FileCloser { class155 explicit FileCloser(int fd) : fd_(fd) {} in FileCloser() function in libtextclassifier3::mobile::__anoncefcfbc10311::FileCloser156 ~FileCloser() { in ~FileCloser()167 SAFTM_DISALLOW_COPY_AND_ASSIGN(FileCloser);183 FileCloser file_closer(fd); in MmapFile()
70 struct FileCloser { struct71 explicit FileCloser(fd_t fd) : fd(fd) {} in FileCloser() argument72 ~FileCloser() { CloseFile(fd); } in ~FileCloser() argument
571 FileCloser closer(fd); in GetPreferredBase()
32 struct FileCloser { struct38 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()