| 47 | |
| 48 | template <> |
| 49 | bool ChannelObserver<std::vector<uint8_t>>::GetSampleFloat( |
| 50 | uint64_t sample, double &value, uint64_t array_index) const { |
| 51 | const auto array_size = channel_.ArraySize(); |
| 52 | const auto sample_index = static_cast<size_t>((sample * array_size) + array_index); |
| 53 | value = 0.0; // value_list is a byte array |
| 54 | return sample_index < valid_list_.size() && valid_list_[sample_index]; |
| 55 | } |
| 56 | |
| 57 | template <> |
| 58 | bool ChannelObserver<std::string>::GetSampleFloat(uint64_t sample, |