Read out 32-bit words from a 8-bit buffer.
More...
Read out 32-bit words from a 8-bit buffer.
Definition at line 14 of file HcalRawDecoder.cxx.
◆ Reader()
hcal::utility::Reader::Reader |
( |
const std::vector< uint8_t > & |
b | ) |
|
|
inline |
◆ next()
uint32_t hcal::utility::Reader::next |
( |
| ) |
|
|
inlineprivate |
Definition at line 17 of file HcalRawDecoder.cxx.
17 {
18 uint32_t w = buffer_.at(i_word_) | (buffer_.at(i_word_ + 1) << 8) |
19 (buffer_.at(i_word_ + 2) << 16) |
20 (buffer_.at(i_word_ + 3) << 24);
21 i_word_ += 4;
22 return w;
23 }
◆ operator bool()
hcal::utility::Reader::operator bool |
( |
| ) |
|
|
inline |
◆ operator>>()
Reader & hcal::utility::Reader::operator>> |
( |
uint32_t & |
w | ) |
|
|
inline |
Definition at line 28 of file HcalRawDecoder.cxx.
28 {
29 if (*this) w = next();
30 return *this;
31 }
◆ buffer_
const std::vector<uint8_t>& hcal::utility::Reader::buffer_ |
|
private |
◆ i_word_
std::size_t hcal::utility::Reader::i_word_ |
|
private |
The documentation for this class was generated from the following file: