| 28 | |
| 29 | template <> |
| 30 | bool ChannelObserver<std::vector<uint8_t>>::GetSampleSigned( |
| 31 | uint64_t sample, int64_t &value, uint64_t array_index) const { |
| 32 | const auto array_size = channel_.ArraySize(); |
| 33 | const auto sample_index = static_cast<size_t>( (sample * array_size) + array_index ); |
| 34 | value = 0; // value_list is a byte array |
| 35 | return sample_index < valid_list_.size() && valid_list_[sample_index]; |
| 36 | } |
| 37 | |
| 38 | template <> |
| 39 | bool ChannelObserver<std::string>::GetSampleSigned(uint64_t sample, |