Searched refs:MmapHandle (Results 1 – 6 of 6) sorted by relevance
40 class MmapHandle {42 MmapHandle(void *start, size_t num_bytes) in MmapHandle() function86 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_;
38 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()
71 const MmapHandle &handle = scoped_mmap.handle(); in ReadProtoFromFile()
89 MmapHandle mmap_handle = scoped_mmap.handle(); in LangIdImpl()101 MmapHandle mmap_handle = scoped_mmap.handle(); in LangIdImpl()
41 using nlp_core::MmapHandle;154 void ParseMergedModel(const MmapHandle& mmap_handle, in ParseMergedModel()173 bool TextClassificationModel::LoadModels(const MmapHandle& mmap_handle) { in LoadModels()
93 bool LoadModels(const nlp_core::MmapHandle& mmap_handle);