class ov::MappedMemory

This class represents a mapped memory. Instead of reading files, we can map the memory via mmap for Linux or MapViewOfFile for Windows. The MappedMemory class is a abstraction to handle such memory with os-dependent details.

#include <mmap_object.hpp>

class MappedMemory
{
public:
    // methods

    virtual char \* data() = 0;
    virtual size_t size() const = 0;
};