class axl::io::SimpleMappedFile

#include <axl_io_MappedFile.h>

class SimpleMappedFile
{
public:
    // construction

    SimpleMappedFile();

    // methods

    bool
    isOpen();

    void*
    p();

    operator void *();

    uint64_t
    getFileSize();

    size_t
    getMappingSize();

    bool
    open(
        const sl::StringRef& fileName,
        uint64_t offset,
        size_t size,
        uint_t flags = 0
        );

    bool
    open(
        const sl::StringRef& fileName,
        uint_t flags = 0
        );

    void*
    view(
        uint64_t offset,
        size_t size
        );

    void
    close();
};