| 1263 | } |
| 1264 | |
| 1265 | uint64_t Cn4Block::WriteSdSample(const std::vector<uint8_t> &buffer) const { |
| 1266 | // Save old index as this is the index which new data bytes are inserted |
| 1267 | auto index = static_cast<uint64_t>(data_list_.size()); |
| 1268 | |
| 1269 | // 32-bits length |
| 1270 | const LittleBuffer<uint32_t> length(static_cast<uint32_t>(buffer.size())); |
| 1271 | data_list_.insert(data_list_.end(),length.cbegin(), length.cend()); |
| 1272 | // Now add data bytes |
| 1273 | data_list_.insert(data_list_.end(),buffer.cbegin(), buffer.cend()); |
| 1274 | return index; |
| 1275 | } |
| 1276 | |
| 1277 | IChannelArray *Cn4Block::ChannelArray(size_t index) const { |
| 1278 | if (index >= cx_list_.size()) { |
no test coverage detected