io_posix: public/private order style

This commit is contained in:
Danny Robson 2016-06-28 12:21:30 +10:00
parent 51cd9749e9
commit 1717458c7a

View File

@ -25,13 +25,6 @@
namespace util { namespace util {
namespace detail { namespace posix { namespace detail { namespace posix {
class mapped_file { class mapped_file {
private:
fd m_fd;
uint8_t *m_data;
size_t m_size;
void load_fd (int mflags);
public: public:
mapped_file (const char *path, int fflags = O_RDONLY | O_BINARY, int mflags = PROT_READ); mapped_file (const char *path, int fflags = O_RDONLY | O_BINARY, int mflags = PROT_READ);
@ -51,6 +44,13 @@ namespace util {
const uint8_t* cbegin (void) const; const uint8_t* cbegin (void) const;
const uint8_t* cend (void) const; const uint8_t* cend (void) const;
private:
fd m_fd;
uint8_t *m_data;
size_t m_size;
void load_fd (int mflags);
}; };
} } } }