12#ifndef NET_NETXNG_INC_ROOT_RRAWFILENETXNG_HXX_
13#define NET_NETXNG_INC_ROOT_RRAWFILENETXNG_HXX_
21struct RRawFileNetXNGImpl;
34 std::unique_ptr<RRawFileNetXNGImpl>
pImpl;
38 size_t ReadAtImpl(
void *buffer,
size_t nbytes, std::uint64_t offset) final;
The RRawFileNetXNG class provides read-only access to remote files using root/roots protocol.
void OpenImpl() final
OpenImpl() is called at most once and before any call to either DoReadAt or DoGetSize.
int GetFeatures() const final
Derived classes shall inform the user about the supported functionality, which can possibly depend on...
std::unique_ptr< RRawFileNetXNGImpl > pImpl
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...
std::unique_ptr< RRawFile > Clone() const final
Create a new RawFile that accesses the same resource. The file pointer is reset to zero.
size_t ReadAtImpl(void *buffer, size_t nbytes, std::uint64_t offset) final
Derived classes should implement low-level reading without buffering.
std::uint64_t GetSizeImpl() final
Derived classes should return the file size or kUnknownFileSize.
The RRawFile provides read-only access to local and remote files.
static constexpr int kFeatureHasSize
GetSize() does not return kUnknownFileSize.
static constexpr int kFeatureHasAsyncIo
File supports async IO.
tbb::task_arena is an alias of tbb::interface7::task_arena, which doesn't allow to forward declare tb...
Used for vector reads from multiple offsets into multiple buffers.
On construction, an ROptions parameter can customize the RRawFile behavior.