15 #ifndef FOXXLL_IO_MMAP_FILE_HEADER 16 #define FOXXLL_IO_MMAP_FILE_HEADER 18 #include <foxxll/config.hpp> 20 #if FOXXLL_HAVE_MMAP_FILE 33 class mmap_file final :
public ufs_file_base,
public disk_queued_file
46 int queue_id = DEFAULT_QUEUE,
47 int allocator_id = NO_ALLOCATOR,
48 unsigned int device_id = DEFAULT_DEVICE_ID,
49 file_stats* file_stats =
nullptr)
50 : file(device_id, file_stats),
51 ufs_file_base(filename, mode),
52 disk_queued_file(queue_id, allocator_id)
54 void serve(
void* buffer, offset_type offset, size_type
bytes,
56 const char * io_type() const final;
63 #endif // #if FOXXLL_HAVE_MMAP_FILE 65 #endif // !FOXXLL_IO_MMAP_FILE_HEADER
std::basic_string< char, std::char_traits< char >, Allocator< char > > string
string with Manager tracking
static const size_t bytes
number of bytes in uint_pair