ark::logging::LocalLogFileHandle
Defined in header “ark/logging/local_log_registry.hh”.
A handle to a log file this can be used to open (and hold open) a reference to a file object. You can then use this to get mappings so you can read data from the object.
Methods
-
LocalLogFileHandle(const std::filesystem::path & path)
Constructor. Initializes a new log file handle against the given path name. -
~LocalLogFileHandle()
Invokes close() automatically, if it hasn’t already been invoked. -
uint8_t * mapping()
Returns a pointer to the raw memory mapped data this is the complete contents of the file, in a byte array. -
size_t size()
Returns the size of the mapped region, in bytes. -
void close()
Closes this object, releasing resources to the OS.