class axl::io::psx::Mapping

#include <axl_io_psx_Mapping.h>

class Mapping
{
public:
    // construction

    Mapping();
    ~Mapping();

    // methods

    operator void *() const;

    void*
    p() const;

    size_t
    getSize();

    bool
    isOpen() const;

    void
    close();

    void*
    map(
        void* addrHint,
        size_t size,
        int protection,
        uint_t flags,
        int fd,
        size_t offset = 0
        );

    bool
    protect(int protection);

    void
    unmap(size_t size);
};