14 LogTrace(
"L1T") <<
"Writing MP7 link header";
17 LogTrace(
"L1T") <<
"Writing CTP7 link header";
25 LogDebug(
"L1T") <<
"Reached end of payload";
26 return std::auto_ptr<Block>();
29 if (
data_[0] == 0xffffffff) {
30 LogDebug(
"L1T") <<
"Skipping padding word";
39 <<
"Expecting a block size of " << header.getSize()
40 <<
" but only " << (
end_ -
data_) <<
" words remaining";
41 return std::auto_ptr<Block>();
44 LogTrace(
"L1T") <<
"Creating block with size " << header.getSize();
46 auto res = std::auto_ptr<Block>(
new Block(header,
data_,
data_ + header.getSize()));
47 data_ += header.getSize();
69 LogTrace(
"L1T") <<
"Getting header from " << std::hex << std::setw(8) << *
data_;
static const unsigned int size_shift
virtual BlockHeader getHeader() override
MP7Payload(const uint32_t *data, const uint32_t *end, bool legacy_mc=false)
std::auto_ptr< Block > getBlock()
virtual BlockHeader getHeader()=0
CTP7Payload(const uint32_t *data, const uint32_t *end)
virtual unsigned getHeaderSize() const =0
virtual BlockHeader getHeader() override
static const unsigned int size_mask
char data[epos_bytes_allocation]