XRootD
XrdCl::PageInfo Struct Reference

#include <XrdClXRootDResponses.hh>

+ Collaboration diagram for XrdCl::PageInfo:

Public Member Functions

 PageInfo (PageInfo &&pginf)
 Move constructor. More...
 
 PageInfo (uint64_t offset=0, uint32_t length=0, void *buffer=0, std::vector< uint32_t > &&cksums=std::vector< uint32_t >())
 Default constructor. More...
 
 ~PageInfo ()
 Destructor. More...
 
void * GetBuffer ()
 Get the buffer. More...
 
std::vector< uint32_t > & GetCksums ()
 Get the checksums. More...
 
uint32_t GetLength () const
 Get the data length. More...
 
size_t GetNbRepair ()
 Get number of repaired pages. More...
 
uint64_t GetOffset () const
 Get the offset. More...
 
PageInfooperator= (PageInfo &&pginf)
 Move assigment operator. More...
 
void SetNbRepair (size_t nbrepair)
 Set number of repaired pages. More...
 

Detailed Description

Definition at line 956 of file XrdClXRootDResponses.hh.

Constructor & Destructor Documentation

◆ PageInfo() [1/2]

XrdCl::PageInfo::PageInfo ( uint64_t  offset = 0,
uint32_t  length = 0,
void *  buffer = 0,
std::vector< uint32_t > &&  cksums = std::vector<uint32_t>() 
)

Default constructor.

Definition at line 630 of file XrdClXRootDResponses.cc.

631  :
632  pImpl( new PageInfoImpl( offset, length, buffer, std::move( cksums ) ) )
633  {
634  }

◆ PageInfo() [2/2]

XrdCl::PageInfo::PageInfo ( PageInfo &&  pginf)

Move constructor.

Definition at line 639 of file XrdClXRootDResponses.cc.

639  : pImpl( std::move( pginf.pImpl ) )
640  {
641  }

◆ ~PageInfo()

XrdCl::PageInfo::~PageInfo ( )

Destructor.

Definition at line 655 of file XrdClXRootDResponses.cc.

656  {
657  }

Member Function Documentation

◆ GetBuffer()

void * XrdCl::PageInfo::GetBuffer ( )

Get the buffer.

Definition at line 678 of file XrdClXRootDResponses.cc.

679  {
680  return pImpl->buffer;
681  }

Referenced by XrdCl::XCpSrc::DeleteChunk(), and XrdPosixFileRH::HandleResponse().

+ Here is the caller graph for this function:

◆ GetCksums()

std::vector< uint32_t > & XrdCl::PageInfo::GetCksums ( )

Get the checksums.

Definition at line 686 of file XrdClXRootDResponses.cc.

687  {
688  return pImpl->cksums;
689  }

Referenced by XrdPosixFileRH::HandleResponse(), and XrdCl::File::PgRead().

+ Here is the caller graph for this function:

◆ GetLength()

uint32_t XrdCl::PageInfo::GetLength ( ) const

Get the data length.

Definition at line 670 of file XrdClXRootDResponses.cc.

671  {
672  return pImpl->length;
673  }

Referenced by XrdCl::XCpCtx::GetChunk(), XrdPosixFileRH::HandleResponse(), XrdCl::ChunkHandler::HandleResponse(), XrdCl::File::PgRead(), XrdCl::ClassicCopyJob::Run(), and XrdCl::PgReadAction::Serialize().

+ Here is the caller graph for this function:

◆ GetNbRepair()

size_t XrdCl::PageInfo::GetNbRepair ( )

Get number of repaired pages.

Definition at line 702 of file XrdClXRootDResponses.cc.

703  {
704  return pImpl->nbrepair;
705  }

Referenced by XrdPosixFileRH::HandleResponse(), and XrdCl::PgReadAction::Serialize().

+ Here is the caller graph for this function:

◆ GetOffset()

uint64_t XrdCl::PageInfo::GetOffset ( ) const

Get the offset.

Definition at line 662 of file XrdClXRootDResponses.cc.

663  {
664  return pImpl->offset;
665  }

Referenced by XrdPosixFileRH::HandleResponse().

+ Here is the caller graph for this function:

◆ operator=()

PageInfo & XrdCl::PageInfo::operator= ( PageInfo &&  pginf)

Move assigment operator.

Definition at line 646 of file XrdClXRootDResponses.cc.

647  {
648  pImpl.swap( pginf.pImpl );
649  return *this;
650  }

◆ SetNbRepair()

void XrdCl::PageInfo::SetNbRepair ( size_t  nbrepair)

Set number of repaired pages.

Definition at line 694 of file XrdClXRootDResponses.cc.

695  {
696  pImpl->nbrepair = nbrepair;
697  }

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