Class ov::MappedMemory#
-
class 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.
Public Functions
-
virtual void hint_prefetch(size_t offset = 0, size_t size = auto_size) = 0#
Hint that the given region of the mapping will be accessed soon.
- Parameters:
offset – Offset within the mapping where prefetching starts.
size – Number of bytes to prefetch. Defaults to the rest of the mapping when set to auto_size.
-
virtual void hint_prefetch(size_t offset = 0, size_t size = auto_size) = 0#