Searched refs:mmap_handle (Results 1 – 5 of 5) sorted by relevance
119 bool Unmap(MmapHandle mmap_handle) { in Unmap() argument120 if (!mmap_handle.ok()) { in Unmap()124 if (munmap(mmap_handle.start(), mmap_handle.num_bytes()) != 0) { in Unmap()
93 bool Unmap(MmapHandle mmap_handle);
89 MmapHandle mmap_handle = scoped_mmap.handle(); in LangIdImpl() local90 if (!mmap_handle.ok()) { in LangIdImpl()95 Initialize(mmap_handle.to_stringpiece()); in LangIdImpl()101 MmapHandle mmap_handle = scoped_mmap.handle(); in LangIdImpl() local102 if (!mmap_handle.ok()) { in LangIdImpl()107 Initialize(mmap_handle.to_stringpiece()); in LangIdImpl()
154 void ParseMergedModel(const MmapHandle& mmap_handle, in ParseMergedModel() argument158 const char* model_data = reinterpret_cast<const char*>(mmap_handle.start()); in ParseMergedModel()173 bool TextClassificationModel::LoadModels(const MmapHandle& mmap_handle) { in LoadModels() argument174 if (!mmap_handle.ok()) { in LoadModels()180 ParseMergedModel(mmap_handle, &selection_model, &selection_model_length, in LoadModels()
93 bool LoadModels(const nlp_core::MmapHandle& mmap_handle);