Searched refs:MmapHandle (Results 1 – 6 of 6) sorted by relevance
/external/libtextclassifier/native/utils/memory/ |
D | mmap.h | 40 class MmapHandle { 42 MmapHandle(void *start, size_t num_bytes, void *unmap_addr = nullptr) 99 MmapHandle MmapFile(const std::string &filename); 102 MmapHandle MmapFile(int fd); 109 MmapHandle MmapFile(int fd, int64 segment_offset, int64 segment_size); 113 bool Unmap(MmapHandle mmap_handle); 133 const MmapHandle &handle() const { return handle_; } in handle() 136 MmapHandle handle_;
|
D | mmap.cc | 35 inline MmapHandle GetErrorMmapHandle() { return MmapHandle(nullptr, 0); } in GetErrorMmapHandle() 56 MmapHandle MmapFile(const std::string &filename) { in MmapFile() 73 MmapHandle MmapFile(int fd) { in MmapFile() 85 MmapHandle MmapFile(int fd, int64 segment_offset, int64 segment_size) { in MmapFile() 118 return MmapHandle(static_cast<char *>(mmap_addr) + alignment_shift, in MmapFile() 122 bool Unmap(MmapHandle mmap_handle) { in Unmap()
|
/external/libtextclassifier/native/lang_id/common/file/ |
D | mmap.h | 46 class MmapHandle { 48 MmapHandle(void *start, size_t num_bytes) in MmapHandle() function 92 MmapHandle MmapFile(const std::string &filename); 102 MmapHandle MmapFile(FileDescriptorOrHandle fd); 107 MmapHandle MmapFile(FileDescriptorOrHandle fd, size_t offset_in_bytes, 112 bool Unmap(MmapHandle mmap_handle); 133 const MmapHandle &handle() { return handle_; } in handle() 136 MmapHandle handle_;
|
D | mmap.cc | 39 inline MmapHandle GetErrorMmapHandle() { return MmapHandle(nullptr, 0); } in GetErrorMmapHandle() 77 MmapHandle MmapFile(const std::string &filename) { in MmapFile() 98 MmapHandle MmapFile(HANDLE file_handle) { in MmapFile() 131 return MmapHandle(mmap_addr, file_size_in_bytes); in MmapFile() 134 bool Unmap(MmapHandle mmap_handle) { in Unmap() 171 MmapHandle MmapFile(const std::string &filename) { in MmapFile() 188 MmapHandle MmapFile(int fd) { in MmapFile() 202 MmapHandle MmapFile(int fd, size_t offset_in_bytes, size_t size_in_bytes) { in MmapFile() 236 return MmapHandle(static_cast<char *>(mmap_addr) + alignment_shift, in MmapFile() 240 bool Unmap(MmapHandle mmap_handle) { in Unmap()
|
D | file-utils.cc | 36 const MmapHandle &handle = scoped_mmap.handle(); in GetFileContent()
|
D | file-utils.h | 64 const MmapHandle &handle = scoped_mmap.handle(); in ReadProtoFromFile()
|