Sizes of header, data, and tailer of data that are divided in blocks / frames / heaps. More...

#include <BlockSize.h>

Inherits dsp::Observation::NbyteNsamplePolicy.

Public Member Functions

BlockSizeclone () const override
 Return a new instance of self.
 
uint64_t get_nbytes (uint64_t nsamples) const override
 Return the size in bytes of nsamples time samples.
 
uint64_t get_nsamples (uint64_t nbytes) const override
 Return the number of samples in nbytes bytes.
 
uint64_t get_block_data_bytes () const
 Get the number of data bytes per block.
 
void set_block_data_bytes (uint64_t bytes)
 Set the number of data bytes per block.
 
uint64_t get_block_header_bytes () const
 Get the number of bytes in header of each block.
 
void set_block_header_bytes (uint64_t bytes)
 Set the number of bytes in header of each block.
 
uint64_t get_block_tailer_bytes () const
 Get the number of bytes in tailer of each block.
 
void set_block_tailer_bytes (uint64_t bytes)
 Set the number of bytes in tailer of each block.
 
uint64_t get_block_bytes () const
 Get the total number of bytes in each block (header + data + tailer)
 
void load (const char *header)
 Load BlockSize attributes from a DADA ASCII header.
 

Protected Attributes

uint64_t block_data_bytes {0}
 Number of bytes of data in each block.
 
uint64_t block_header_bytes {0}
 Number of bytes in header of each block.
 
uint64_t block_tailer_bytes {0}
 Number of bytes in tailer of each block.
 

Detailed Description

Sizes of header, data, and tailer of data that are divided in blocks / frames / heaps.


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

Generated using doxygen 1.8.17