Everett
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
everett::mapped_file Struct Reference

#include <mapped_file.h>

Public Member Functions

 mapped_file ()=default
 
std::uint64_t size () const noexcept
 
mapped_slice slice (std::uint64_t offset, std::uint64_t length) const
 

Static Public Member Functions

static mapped_file open (std::filesystem::path const &path)
 

Private Member Functions

 mapped_file (std::shared_ptr< mapped_file_detail::region const > owner)
 

Private Attributes

std::shared_ptr< mapped_file_detail::region const > owner_
 

Constructor & Destructor Documentation

◆ mapped_file() [1/2]

everett::mapped_file::mapped_file ( )
default

◆ mapped_file() [2/2]

everett::mapped_file::mapped_file ( std::shared_ptr< mapped_file_detail::region const >  owner)
inlineexplicitprivate

Member Function Documentation

◆ open()

static mapped_file everett::mapped_file::open ( std::filesystem::path const &  path)
inlinestatic

◆ size()

std::uint64_t everett::mapped_file::size ( ) const
inlinenoexcept

◆ slice()

mapped_slice everett::mapped_file::slice ( std::uint64_t  offset,
std::uint64_t  length 
) const
inline

Member Data Documentation

◆ owner_

std::shared_ptr<mapped_file_detail::region const> everett::mapped_file::owner_
private

The documentation for this struct was generated from the following file: