ark::logging::S3LogFileHandle
Defined in header “ark/logging/s3_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
-
S3LogFileHandle(core::ByteBuffer && buffer)
Constructor. Initializes a new log file handle that manages the given byte buffer. -
~S3LogFileHandle()
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.