Lines Matching refs:StreamData
179 StreamData.push_back(std::make_pair(Size, Blocks));
180 return StreamData.size() - 1;
189 StreamData.push_back(std::make_pair(Size, NewBlocks));
190 return StreamData.size() - 1;
208 auto &CurrentBlocks = StreamData[Idx].second;
214 auto CurrentBlocks = ArrayRef<uint32_t>(StreamData[Idx].second);
218 StreamData[Idx].second = CurrentBlocks.drop_back(RemovedBlocks);
221 StreamData[Idx].first = Size;
225 uint32_t MSFBuilder::getNumStreams() const { return StreamData.size(); }
228 return StreamData[StreamIdx].first;
232 return StreamData[StreamIdx].second;
241 Size += StreamData.size() * sizeof(ulittle32_t); // StreamSizes
242 for (const auto &D : StreamData) {
295 if (!StreamData.empty()) {
296 ulittle32_t *Sizes = Allocator.Allocate<ulittle32_t>(StreamData.size());
297 L.StreamSizes = ArrayRef<ulittle32_t>(Sizes, StreamData.size());
298 L.StreamMap.resize(StreamData.size());
299 for (uint32_t I = 0; I < StreamData.size(); ++I) {
300 Sizes[I] = StreamData[I].first;
302 Allocator.Allocate<ulittle32_t>(StreamData[I].second.size());
303 std::uninitialized_copy_n(StreamData[I].second.begin(),
304 StreamData[I].second.size(), BlockList);
306 ArrayRef<ulittle32_t>(BlockList, StreamData[I].second.size());