| 8 | |
| 9 | template <> |
| 10 | bool ChannelObserver<std::vector<uint8_t>>::GetSampleUnsigned( |
| 11 | uint64_t sample, uint64_t &value, uint64_t array_index) const { |
| 12 | const auto array_size = channel_.ArraySize(); |
| 13 | const auto sample_index = static_cast<size_t>( (sample * array_size) + array_index ); |
| 14 | value = 0; // value_list is a byte array |
| 15 | return sample_index < valid_list_.size() && valid_list_[sample_index]; |
| 16 | } |
| 17 | |
| 18 | template <> |
| 19 | bool ChannelObserver<std::string>::GetSampleUnsigned(uint64_t sample, |