12#ifndef NET_NETXNG_INC_ROOT_RRAWFILENETXNG_HXX_
13#define NET_NETXNG_INC_ROOT_RRAWFILENETXNG_HXX_
35 std::unique_ptr<RRawFileNetXNGImpl>
pImpl;
40 size_t ReadAtImpl(
void *buffer,
size_t nbytes, std::uint64_t offset) final;
void OpenImpl() final
OpenImpl() is called at most once and before any call to either DoReadAt or DoGetSize.
std::unique_ptr< RRawFileNetXNGImpl > pImpl
pointer to implementation
RIOVecLimits GetReadVLimits() final
Returns the limits regarding the ioVec input to ReadV for this specific file; may open the file as a ...
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...
RRawFileNetXNG(std::string_view url, RRawFile::ROptions options)
std::optional< RIOVecLimits > fIOVecLimits
Set by GetReadVLimits and then cached.
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.
RRawFile(std::string_view url, ROptions options)
Implementations may enforce limits on the use of vector reads.
Used for vector reads from multiple offsets into multiple buffers.
On construction, an ROptions parameter can customize the RRawFile behavior.