Lines Matching refs:MmapFile
31 // Similar to a pointer: you "allocate" it using MmapFile(filename) and "delete"
33 // signature of MmapFile and Unmap; fortunately, it's a small class, so there
61 // Shortcut to simplify checking success of MmapFile(). See usage example
88 // MmapHandle mmap_handle = MmapFile(filename);
99 MmapHandle MmapFile(const std::string &filename);
101 // Like MmapFile(const std::string &filename), but uses a file descriptor.
102 MmapHandle MmapFile(int fd);
109 MmapHandle MmapFile(int fd, int64 segment_offset, int64 segment_size);
111 // Unmaps a file mapped using MmapFile. Returns true on success, false
120 : handle_(MmapFile(filename)) {}
122 explicit ScopedMmap(int fd) : handle_(MmapFile(fd)) {}
125 : handle_(MmapFile(fd, segment_offset, segment_size)) {}