FACT++  1.0
void zofits::reallocateBuffers ( )
inlineprotected

Allocates the required objects.

Definition at line 640 of file zofits.h.

References TileHeader().

641  {
642  size_t total_block_head_size = 0;
643  for (auto it=fRealColumns.begin(); it!=fRealColumns.end(); it++)
644  total_block_head_size += it->block_head.getSizeOnDisk();
645 
646  const size_t chunk_size = fRealRowWidth*fNumRowsPerTile + total_block_head_size + sizeof(FITS::TileHeader) + 8; //+8 for checksuming;
647  fMemPool.setChunkSize(chunk_size);
649  fRawSumBuffer.resize(fRealRowWidth + 4-fRealRowWidth%4); //for checksuming
650  }
std::shared_ptr< char > malloc(bool block=true)
MemoryManager fMemPool
Actual memory manager, providing memory for the compression buffers.
Definition: zofits.h:968
std::vector< char > fRawSumBuffer
buffer used for checksuming the incoming data, before compression
Definition: zofits.h:1008
uint32_t fNumRowsPerTile
Number of rows per tile.
Definition: zofits.h:980
std::vector< CompressedColumn > fRealColumns
Vector hosting the columns of the file.
Definition: zofits.h:1005
uint32_t fRealRowWidth
Width in bytes of one uncompressed row.
Definition: zofits.h:1006
bool setChunkSize(const size_t size)
std::shared_ptr< char > fSmartBuffer
Smart pointer to the buffer where the incoming rows are written.
Definition: zofits.h:1007
TileHeader()
Definition: FITS.h:75

+ Here is the call graph for this function: