Read out 32-bit words from a 8-bit buffer.
More...
Read out 32-bit words from a 8-bit buffer.
Definition at line 19 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 22 of file HcalRawDecoder.cxx.
22 {
23 uint32_t w = buffer_.at(i_word_) | (buffer_.at(i_word_ + 1) << 8) |
24 (buffer_.at(i_word_ + 2) << 16) |
25 (buffer_.at(i_word_ + 3) << 24);
26 i_word_ += 4;
27 return w;
28 }
◆ operator bool()
| hcal::utility::Reader::operator bool |
( |
| ) |
|
|
inline |
◆ operator>>()
| Reader & hcal::utility::Reader::operator>> |
( |
uint32_t & | w | ) |
|
|
inline |
Definition at line 33 of file HcalRawDecoder.cxx.
33 {
34 if (*this) w = next();
35 return *this;
36 }
◆ 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: