ark::logging::PresignedUrlLogFileHandle

Defined in header “ark/logging/presigned_url_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

  • PresignedUrlLogFileHandle(core::ByteBuffer && buffer)
    Constructor. Initializes a new log file handle that manages the given byte buffer.

  • ~PresignedUrlLogFileHandle()
    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.