5 #ifndef CVMFS_UTIL_MMAP_FILE_H_
6 #define CVMFS_UTIL_MMAP_FILE_H_
14 #ifdef CVMFS_NAMESPACE_GUARD
15 namespace CVMFS_NAMESPACE_GUARD {
32 inline unsigned char*
buffer()
const {
return mapped_file_; }
33 inline size_t size()
const {
return mapped_size_; }
34 inline const std::string&
file_path()
const {
return file_path_; }
36 inline bool IsMapped()
const {
return mapped_; }
47 #ifdef CVMFS_NAMESPACE_GUARD
51 #endif // CVMFS_UTIL_MMAP_FILE_H_
unsigned char * mapped_file_
const std::string file_path_
const std::string & file_path() const
unsigned char * buffer() const