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 624 of file XrdClXRootDResponses.cc.

625  :
626  pImpl( new PageInfoImpl( offset, length, buffer, std::move( cksums ) ) )
627  {
628  }

◆ PageInfo() [2/2]

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

Move constructor.

Definition at line 633 of file XrdClXRootDResponses.cc.

633  : pImpl( std::move( pginf.pImpl ) )
634  {
635  }

◆ ~PageInfo()

XrdCl::PageInfo::~PageInfo ( )

Destructor.

Definition at line 649 of file XrdClXRootDResponses.cc.

650  {
651  }

Member Function Documentation

◆ GetBuffer()

void * XrdCl::PageInfo::GetBuffer ( )

Get the buffer.

Definition at line 672 of file XrdClXRootDResponses.cc.

673  {
674  return pImpl->buffer;
675  }

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 680 of file XrdClXRootDResponses.cc.

681  {
682  return pImpl->cksums;
683  }

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 664 of file XrdClXRootDResponses.cc.

665  {
666  return pImpl->length;
667  }

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 696 of file XrdClXRootDResponses.cc.

697  {
698  return pImpl->nbrepair;
699  }

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 656 of file XrdClXRootDResponses.cc.

657  {
658  return pImpl->offset;
659  }

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 640 of file XrdClXRootDResponses.cc.

641  {
642  pImpl.swap( pginf.pImpl );
643  return *this;
644  }

◆ SetNbRepair()

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

Set number of repaired pages.

Definition at line 688 of file XrdClXRootDResponses.cc.

689  {
690  pImpl->nbrepair = nbrepair;
691  }

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