| 117 | } |
| 118 | |
| 119 | bool deserializer::look_ahead(std::size_t _index, uint8_t& _value) const { |
| 120 | if (_index > remaining_) |
| 121 | return false; |
| 122 | |
| 123 | _value = *(position_ + static_cast<std::vector<byte_t>::difference_type>(_index)); |
| 124 | |
| 125 | return true; |
| 126 | } |
| 127 | |
| 128 | bool deserializer::look_ahead(std::size_t _index, uint16_t& _value) const { |
| 129 | if (_index + 1 > remaining_) |
no outgoing calls
no test coverage detected