XRootD
Loading...
Searching...
No Matches
XrdCl::CloneLocations Struct Reference

#include <XrdClFile.hh>

Collaboration diagram for XrdCl::CloneLocations:

Public Member Functions

void Add (const File &file, off_t dstOffs, off_t srcOffs, off_t srcLen)

Public Attributes

std::vector< CloneLocationlocations

Detailed Description

Definition at line 1030 of file XrdClFile.hh.

Member Function Documentation

◆ Add()

void XrdCl::CloneLocations::Add ( const File & file,
off_t dstOffs,
off_t srcOffs,
off_t srcLen )
inline

Adds a clone location to the CloneLocations object

Parameters
file: a file object to use as the source it should be already open for reading and remain so until after the Clone() call
dstOffs: offset to start clone range in the destination file
srcOffs: offset to start fetching clone range in the source
srcLen: length of range to clone

Definition at line 1043 of file XrdClFile.hh.

1044 {
1045 CloneLocation loc;
1046 loc.srcOffs = srcOffs;
1047 loc.dstOffs = dstOffs;
1048 loc.srcLen = srcLen;
1049 loc.file = file.GetFileTemplate();
1050 locations.emplace_back(std::move(loc));
1051 }
std::vector< CloneLocation > locations

References XrdCl::CloneLocation::dstOffs, XrdCl::CloneLocation::file, locations, XrdCl::CloneLocation::srcLen, and XrdCl::CloneLocation::srcOffs.

Member Data Documentation

◆ locations

std::vector<CloneLocation> XrdCl::CloneLocations::locations

Definition at line 1053 of file XrdClFile.hh.

Referenced by Add(), and XrdCl::FileStateHandler::Clone().


The documentation for this struct was generated from the following file: