Home
last modified time | relevance | path

Searched refs:MmapHandle (Results 1 – 6 of 6) sorted by relevance

/external/libtextclassifier/common/
Dmmap.h40 class MmapHandle {
42 MmapHandle(void *start, size_t num_bytes) in MmapHandle() function
86 MmapHandle MmapFile(const std::string &filename);
89 MmapHandle MmapFile(int fd);
93 bool Unmap(MmapHandle mmap_handle);
111 const MmapHandle &handle() { return handle_; } in handle()
114 MmapHandle handle_;
Dmmap.cc38 inline MmapHandle GetErrorMmapHandle() { in GetErrorMmapHandle()
39 return MmapHandle(nullptr, 0); in GetErrorMmapHandle()
59 MmapHandle MmapFile(const std::string &filename) { in MmapFile()
76 MmapHandle MmapFile(int fd) { in MmapFile()
116 return MmapHandle(mmap_addr, file_size_in_bytes); in MmapFile()
119 bool Unmap(MmapHandle mmap_handle) { in Unmap()
Dfile-utils.h71 const MmapHandle &handle = scoped_mmap.handle(); in ReadProtoFromFile()
/external/libtextclassifier/lang_id/
Dlang-id.cc89 MmapHandle mmap_handle = scoped_mmap.handle(); in LangIdImpl()
101 MmapHandle mmap_handle = scoped_mmap.handle(); in LangIdImpl()
/external/libtextclassifier/smartselect/
Dtext-classification-model.cc41 using nlp_core::MmapHandle;
154 void ParseMergedModel(const MmapHandle& mmap_handle, in ParseMergedModel()
173 bool TextClassificationModel::LoadModels(const MmapHandle& mmap_handle) { in LoadModels()
Dtext-classification-model.h93 bool LoadModels(const nlp_core::MmapHandle& mmap_handle);