BitShares-Core  5.0.0
BitShares blockchain implementation and command-line interface software
file_mapping.hpp
Go to the documentation of this file.
1 #pragma once
2 #include <fc/fwd.hpp>
3 #include <cstdint>
4 #include <cstdlib>
5 
6 namespace boost {
7  namespace interprocess {
8  class file_mapping;
9  class mapped_region;
10  }
11 }
12 namespace fc {
13  enum mode_t {
17  };
18 
19  class file_mapping {
20  public:
21  file_mapping( const char* file, mode_t );
22  ~file_mapping();
23  private:
24  friend class mapped_region;
25  #ifdef _WIN64
27  #else
29  #endif
30  };
31 
32  class mapped_region {
33  public:
34  mapped_region( const file_mapping& fm, mode_t m, uint64_t start, size_t size );
35  mapped_region( const file_mapping& fm, mode_t m );
36  ~mapped_region();
37  void flush();
38  void* get_address()const;
39  size_t get_size()const;
40  private:
42  };
43 }
Used to forward declare value types.
Definition: fwd.hpp:10
Definition: api.hpp:15