12#ifndef ROOT_RRawFileCurl
13#define ROOT_RRawFileCurl
35 size_t ReadAtImpl(
void *buffer,
size_t nbytes, std::uint64_t offset) final;
Encapsulates a curl easy handle and provides an interface to send HTTP HEAD and (multi-)range queries...
std::unique_ptr< RCurlConnection > fConnection
static constexpr int kDefaultBlockSize
std::uint64_t GetSizeImpl() final
Derived classes should return the file size.
size_t ReadAtImpl(void *buffer, size_t nbytes, std::uint64_t offset) final
Derived classes should implement low-level reading without buffering.
void ReadVImpl(RIOVec *ioVec, unsigned int nReq) final
By default implemented as a loop of ReadAt calls but can be overwritten, e.g. XRootD or DAVIX impleme...
void OpenImpl() final
OpenImpl() is called at most once and before any call to either DoReadAt or DoGetSize.
RCurlConnection & GetConnection()
RRawFileCurl(std::string_view url, RRawFile::ROptions options)
std::unique_ptr< RRawFile > Clone() const final
Create a new RawFile that accesses the same resource. The file pointer is reset to zero.
RRawFile(std::string_view url, ROptions options)
These are definitions of various free functions for the C-style compression routines in ROOT.
Small utility to parse cmdline options.
Used for vector reads from multiple offsets into multiple buffers.
On construction, an ROptions parameter can customize the RRawFile behavior.