blob: 55f1ff1e639272db21e96de26d6b0ade4b184a8c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
#include "manifest.h"
using namespace bundle;
manifest_t manifest_t::read(reader_t& reader, int32_t num_files)
{
manifest_t manifest;
for (int32_t i = 0; i < num_files; i++)
{
file_entry_t entry = file_entry_t::read(reader);
manifest.files.push_back(std::move(entry));
manifest.m_need_extraction |= entry.needs_extraction();
}
return manifest;
}
|