|
XRootD
|
#include <XrdEcWrtBuff.hh>
Collaboration diagram for XrdEc::WrtBuff:Public Member Functions | |
| WrtBuff (const ObjCfg &objcfg) | |
| WrtBuff (WrtBuff &&wrtbuff) | |
| Move constructor. | |
| ~WrtBuff () | |
| bool | Complete () |
| True if the buffer if full, false otherwise. | |
| bool | Empty () |
| True if there are no data in the buffer, false otherwise. | |
| void | Encode () |
| Calculate the parity for the data stripes and the crc32cs. | |
| uint32_t | GetBlkSize () |
| Get size of the data in the buffer. | |
| uint32_t | GetCrc32c (size_t strpnb) |
| char * | GetStrpBuff (uint8_t strpnb) |
| uint32_t | GetStrpSize (uint8_t strp) |
| void | Pad (uint32_t size) |
| uint32_t | Write (uint32_t size, const char *buffer) |
Write cache, accumulates full block and then calculates parity and all of it to the storage
Definition at line 132 of file XrdEcWrtBuff.hh.
|
inline |
Constructor
| objcfg | : data object configuration |
Definition at line 140 of file XrdEcWrtBuff.hh.
References Create.
Referenced by WrtBuff().
Here is the caller graph for this function:
|
inline |
Move constructor.
Definition at line 149 of file XrdEcWrtBuff.hh.
References WrtBuff().
Here is the call graph for this function:
|
inline |
Definition at line 158 of file XrdEcWrtBuff.hh.
References XrdEc::BufferPool::Instance(), and XrdEc::BufferPool::Recycle().
Here is the call graph for this function:
|
inline |
True if the buffer if full, false otherwise.
Definition at line 243 of file XrdEcWrtBuff.hh.
|
inline |
True if there are no data in the buffer, false otherwise.
Definition at line 250 of file XrdEcWrtBuff.hh.
|
inline |
Calculate the parity for the data stripes and the crc32cs.
Definition at line 257 of file XrdEcWrtBuff.hh.
References XrdEc::RedundancyProvider::compute(), XrdEc::ThreadPool::Execute(), XrdEc::Config::GetRedundancy(), GetStrpSize(), XrdEc::Config::Instance(), and XrdEc::ThreadPool::Instance().
Here is the call graph for this function:
|
inline |
Get size of the data in the buffer.
Definition at line 236 of file XrdEcWrtBuff.hh.
|
inline |
Calculate the crc32c for given data stripe
| strpnb | : number of the stripe |
Definition at line 280 of file XrdEcWrtBuff.hh.
|
inline |
Return buffer corresponding to given stripe
| strpnb | : number of the stripe |
Definition at line 202 of file XrdEcWrtBuff.hh.
|
inline |
Return size of the data in the given stripe
| strp | : number of the stripe |
Definition at line 211 of file XrdEcWrtBuff.hh.
References GetStrpSize().
Referenced by Encode(), and GetStrpSize().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Pad the buffer with zeros.
| size | : number of zeros to be written into the buffer |
Definition at line 183 of file XrdEcWrtBuff.hh.
|
inline |
Write data into the buffer
| size | : number of bytes to be written |
| buffer | : buffer with data to be written |
Definition at line 169 of file XrdEcWrtBuff.hh.