17 if (newsize % wordsize != 0)
18 throw cms::Exception(
"DataCorrupt") <<
"FEDRawData::resize: " << newsize <<
" is not a multiple of " << wordsize
29 if (
size() == newsize)
32 data_.resize(newsize);
34 if (newsize % wordsize != 0)
35 throw cms::Exception(
"DataCorrupt") <<
"FEDRawData::resize: " << newsize <<
" is not a multiple of " << wordsize
size_t size() const
Lenght of the data buffer in bytes.
FEDRawData()
Default ctor.
void resize(size_t newsize, size_t wordsize=8)
const unsigned char * data() const
Return a const pointer to the beginning of the data buffer.